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 response_lib = require('../lib/response_lib');
var reql = require('../lib/request_lib');
function timestags (keys) {
this.myKeys = keys;
}
timestags.prototype.search = function (args, callback, myKeys) {
var callbackReturn = response_lib.checkCallback(args, callback);
args = callbackReturn.args;
callback = ca... | spencehood/nyt | services/timestags.js | JavaScript | mit | 583 |
var errors = require('./errors');
function Collection() {
this.store = {};
this.lastId = 0;
}
Collection.prototype.seed = function(obj, cb) {
this.store = obj;
cb();
};
Collection.prototype.findAll = function(cb) {
var items = [];
for (var id in this.store) {
items.push(this.store[id]);
}
cb(nu... | alexyoung/nodeinpractice | listings/web/route-separation/db.js | JavaScript | mit | 941 |
/* */
"format global";
/**
* 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 appl... | burkeholland/itunes-artist-search | jspm_packages/github/kendo-labs/bower-kendo-ui@2015.2.720/src/js/cultures/kendo.culture.gn-PY.js | JavaScript | mit | 3,013 |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareKeyboardArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowLeft.displayName = 'HardwareKeyboardArrowLeft';
HardwareKeyboardArrowLeft.muiName... | alvarolobato/blueocean-plugin | jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/keyboard-arrow-left.js | JavaScript | mit | 377 |
var _ = require('underscore'),
$ = require('jquery'),
React = require('react'),
Field = require('../Field'),
Note = require('../../components/Note'),
Select = require('react-select');
module.exports = Field.create({
shouldCollapse: function() {
return this.props.collapse && !this.hasExisting();
},
fileFie... | KZackery/keystone | fields/types/localfile/LocalFileField.js | JavaScript | mit | 4,974 |
var _ = require('lodash');
var jsParser = require('esprima');
var walk = require('dgeni-packages/jsdoc/lib/walk');
var LEADING_STAR = /^[^\S\r\n]*\*[^\S\n\r]?/gm;
module.exports = {
name: 'jsdoc',
description: 'Read js documents',
runAfter: ['files-read'],
runBefore: ['parsing-tags'],
exports: {
//The js... | mauricionr/material | docs/processors/jsdoc.js | JavaScript | mit | 2,142 |
var extend = require('extend');
var _ = require('lodash');
var async = require('async');
var nodemailer = require('nodemailer');
var nunjucks = require('nunjucks');
var urls = require('url');
/**
* emailMixin
* @augments Augments the apos object with a mixin method for attaching
* a simple self.email method to modu... | Klaudit/apostrophe | lib/emailMixin.js | JavaScript | mit | 9,236 |
'use strict';
var _ = require('underscore'),
path = require('path'),
Promise = require('bluebird'),
errorHelper = require(path.join(global.__libdir, 'errorHelper')),
recallHelper = require(path.join(global.__libdir, 'recallHelper')),
mongoAdapter = require(path.join(global.__adptsdir, 'mongo'));
/**
* Adds a co... | BI/TotalBriecall | app/dals/comments.js | JavaScript | mit | 1,732 |
var _ = require('underscore');
var runLog = require('../run-log.js');
var catalog = require('../catalog/catalog.js');
var archinfo = require('../archinfo.js');
var isopack = require('../isobuild/isopack.js');
var buildmessage = require('../buildmessage.js');
var Console = require('../console.js').Console;
var auth = r... | D1no/meteor | tools/packaging/updater.js | JavaScript | mit | 7,491 |
/* global document, clearTimeout, setTimeout */
import View from './View';
import Speaker from './Speaker';
/*
* Bar represents the bottom menu bar of every mediaPlayer.
* It contains a Speaker and an icon.
* Every Bar is a View.
* Ex.: var bar = Bar({elementID: element, id: id});
*/
const Bar = (spec) => {
co... | yangjinecho/licode | erizo_controller/erizoClient/src/views/Bar.js | JavaScript | mit | 2,703 |
/**
* @depends {nrs.js}
*/
var NRS = (function(NRS, $, undefined) {
var _password;
var _decryptionPassword;
var _decryptedTransactions = {};
var _encryptedNote = null;
var _sharedKeys = {};
var _hash = {
init: SHA256_init,
update: SHA256_write,
getBytes: SHA256_finalize
};
NRS.generatePublicKey = func... | Tosch110/SuperNET-Lite-3 | ui/js/nrs.encryption.js | JavaScript | mit | 21,794 |
jui.define("chart.brush.scatter", [ "util.base" ], function(_) {
/**
* @class chart.brush.scatter
*
* 점으로 이루어진 데이타를 표현하는 브러쉬
*
* @extends chart.brush.core
*/
var ScatterBrush = function() {
this.getSymbolType = function(key, value) {
var symbol = this.brush.sy... | juijs/store.jui.io | public/js/jui/js/chart/brush/scatter.js | JavaScript | mit | 11,784 |
import sinon from 'sinon';
import {expect} from 'chai';
import FetchPlease from '../src/fetch-please';
let XMLHttpRequest = sinon.useFakeXMLHttpRequest();
describe('Method putRequest()', () => {
before(function() {
this.requests = [];
this.api = new FetchPlease('/api/', {XMLHttpRequest});
... | JulianWielga/fetch-please | test/put.spec.js | JavaScript | mit | 2,096 |
"use strict";
/**
* DateFormat モジュール
*
* @module {DateFormat} DateFormat
* @class {DateFormat}
*/
module.exports = new (function DateFormat() {
/**
* 実行コンテキスト
*
* @type {Function}
*/
const self = this;
/**
* 日時文字列にする
*/
const _init = function _init() {
};... | itamjp/multi-browser-opener | src/libs/DateFormat.js | JavaScript | mit | 3,016 |
Clazz.declarePackage ("JS");
Clazz.load (["JU.JmolMolecule", "JU.BS", "$.Lst", "JS.VTemp"], "JS.SmilesSearch", ["java.util.Arrays", "$.Hashtable", "JU.AU", "$.SB", "$.V3", "JS.SmilesAromatic", "$.SmilesAtom", "$.SmilesBond", "$.SmilesMeasure", "$.SmilesParser", "JU.BSUtil", "$.Logger"], function () {
c$ = Clazz.decor... | m4rx9/rna-pdb-tools | rna_tools/tools/webserver-engine/app/static/app/jsmol/j2s/JS/SmilesSearch.js | JavaScript | mit | 40,777 |
'use strict'
const fs = require('../fs')
const path = require('path')
const util = require('util')
function getStats (src, dest, opts) {
const statFunc = opts.dereference
? (file) => fs.stat(file, { bigint: true })
: (file) => fs.lstat(file, { bigint: true })
return Promise.all([
statFunc(src),
st... | jprichardson/node-fs-extra | lib/util/stat.js | JavaScript | mit | 5,226 |
import { T as Transport } from './transport-ce07b771.js';
import { S as Sync } from './util-89055384.js';
import { M as Master } from './master-04a42192.js';
import { g as getFilterPlayerView } from './filter-player-view-43ed49b0.js';
import ioNamespace__default from 'socket.io-client';
/*
* Copyright 2017 The board... | cdnjs/cdnjs | ajax/libs/boardgame-io/0.50.0-alpha.2/esm/socketio-80abb602.js | JavaScript | mit | 14,726 |
var optimizeConfig = {
constantConstraintFactor: 100,
repulsionPower1: -8,
repulsionFactor: 50000,
repulsionThreshold: 5,
repulsionPower2: 2
};
var makeSegment = function(params) {
var groupIdx = params.groupIdx;
var tileIdx = params.tileIdx;
var patternIdx = params.patternIdx;
params.polygonID = polylist[gro... | yqlu/sliceform-studio | public/js/optimizeModel.js | JavaScript | mit | 38,324 |
Clazz.declarePackage ("JS");
Clazz.load (null, "JS.ScriptContext", ["java.util.Hashtable", "JS.SV"], function () {
c$ = Clazz.decorateAsClass (function () {
this.aatoken = null;
this.allowJSThreads = false;
this.chk = false;
this.contextPath = " >> ";
this.vars = null;
this.displayLoadErrorsSave = false;
this.... | ekimb/esperite | jsmol/j2s/JS/ScriptContext.js | JavaScript | mit | 3,162 |
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=getClasses;var _react=_interopRequireDefault(require("react")),_createShallow=_interopRequireDefault(require("./createShallow")),shallow=(0,_createShallo... | cdnjs/cdnjs | ajax/libs/material-ui/4.9.4/test-utils/getClasses.min.js | JavaScript | mit | 471 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./turn-order-4ab12333.js"),require("immer"),require("./plugin-random-7425844d.js"),require("lodash.isplainobject");var reducer=require("./reducer-fa65c6b2.js");require("rfc6902");var initialize=require("./initialize-d89f4805.js"),transport=req... | cdnjs/cdnjs | ajax/libs/boardgame-io/0.50.0-alpha.2/cjs/internal.min.js | JavaScript | mit | 789 |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.FormLabelRoot = exports.overridesResol... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.30/node/FormLabel/FormLabel.js | JavaScript | mit | 6,178 |
function storeInsertOrder() {
var f = document.getElementById('fo_insert_order');
return procFilter(f, insert_order);
}
function do_order() {
var cartnos = makeList();
location.href = current_url.setQuery('act','dispNproductOrderItems').setQuery('cartnos',cartnos);
}
function calculate_payamount(milea... | bjrambo/nurigo | modules/nproduct/tpl/skin.js/orderitems.js | JavaScript | gpl-2.0 | 1,853 |
import $data, { $C, Guard, Container, Exception } from '../../TypeSystem/index.js';
$C('$data.Expressions.ContinuationExpressionBuilder', $data.Expressions.EntityExpressionVisitor, null, {
constructor: function (mode) {
this.mode = mode;
},
compile: function (query) {
var findContext = { m... | Malyngo/jaydata | src/Types/Expressions/ContinuationExpressionBuilder.js | JavaScript | gpl-2.0 | 3,363 |
/*!
* Bootstrap v3.2.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=72f79ad2d35aac1b853f)
* Config saved to config.json and https:... | twinks14/twinkal-profile | wp-content/themes/roda/bootstrap/js/bootstrap.js | JavaScript | gpl-2.0 | 23,006 |
$(function() {
$("#datepicker").datepicker({
dateFormat: "dd/mm/yy"
})
}); | dhavalmanjaria/dma-student-information-system | student_information_system/static/js/select-attendance.js | JavaScript | gpl-2.0 | 91 |
(function () {
var StateItems = [
{key: 'ALL', label: 'All States', leaf: true},
{key: 'AL', label: 'Alabama', leaf: true},
{key: 'AK', label: 'Alaska', leaf: true},
{key: 'AZ', label: 'Arizona', leaf: true},
{key: 'AR', label: 'Arkansas', leaf: true},
{key: 'C... | mesocentrefc/Janua-SMS | janua-web/ext/examples/modern/energy/app/store/NavigationStore.js | JavaScript | gpl-2.0 | 3,618 |
/*
//
// BEGIN SONGBIRD GPL
//
// This file is part of the Songbird web player.
//
// Copyright(c) 2005-2008 POTI, Inc.
// http://songbirdnest.com
//
// This file may be licensed under the terms of of the
// GNU General Public License Version 2 (the "GPL").
//
// Software distributed under the License is distributed
/... | freaktechnik/nightingale-hacking | app/content/scripts/sanitize.js | JavaScript | gpl-2.0 | 2,935 |
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/BSD-3-Clause
* @link http://titon.io
*/
export Accordion from 'components/Accordion';
| localymine/multisite | wp-content/themes/kodomo/html/toolkit-3.0/js-es6/components/index.js | JavaScript | gpl-2.0 | 192 |
try{"undefined"===typeof jQuery?steal.map("jquery/jquery.js",motopress.wpJQueryUrl+"jquery.js").then(motopress.wpJQueryUrl+"jquery.js"):steal.loaded("jquery/jquery.js");steal.then("bootstrap/bootstrap2-custom.min.js"+motopress.pluginVersionParam,"bootstrap/bootstrap-icon.min.css"+motopress.pluginVersionParam).then("mp/... | hoangluanlee/dlbh | wp-content/plugins/motopress-content-editor/mp/ce/production.js | JavaScript | gpl-2.0 | 885 |
EasyDiscuss.module('polls', function($)
{
var module = this;
EasyDiscuss.require()
.view('field.form.polls.answer')
.done(function($) {
EasyDiscuss.Controller('Polls.Answers' ,
{
defaultOptions:
{
pollId: null,
'{voteCount}' : '.voteCount',
'{votersAvatar}': '.votersAvatar',
'{votePo... | BetterBetterBetter/B3App | media/com_easydiscuss/scripts/polls.js | JavaScript | gpl-2.0 | 4,167 |
// svg.filter.js 0.4 - Copyright (c) 2013-2014 Wout Fierens - Licensed under the MIT license
;(function() {
// Main filter class
SVG.Filter = function() {
this.constructor.call(this, SVG.create('filter'))
}
// Inherit from SVG.Container
SVG.Filter.prototype = new SVG.Parent
//
SVG.extend(SVG.Filter... | hugllc/HUGnetLib | src/webapi/contrib/svg.filter.js | JavaScript | gpl-3.0 | 7,174 |
"use strict";
/* global define, config, templates, app, utils, ajaxify, socket */
define('forum/category', [
'composer',
'forum/pagination',
'forum/infinitescroll',
'share',
'navigator',
'forum/categoryTools',
'sort',
'components',
'translator'
], function(composer, pagination, infinitescroll, share, navigato... | cismous/NodeBB | public/src/client/category.js | JavaScript | gpl-3.0 | 9,536 |
// Get the registration <form> element from the DOM.
var form = document.getElementById("registration-form");
var submitButton = form.querySelector("button");
// TODO: Get the password <input> elements from the DOM by ID
// var passwordInput = ...;
// var confirmPasswordInput = ...;
var checkPasswords = function... | theglue99/Interface480 | module4/ContosoConf/scripts/pages/register.js | JavaScript | gpl-3.0 | 12,408 |
/*
* Ext JS Library 1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
Ext.grid.AbstractSelectionModel=function(){this.locked=false;Ext.grid.AbstractSelectionModel.superclass.constructor.call(this);};Ext.extend(Ext.grid.AbstractSelectionModel,Ext.util.O... | Whapow/tarantula | app/assets/javascripts/ext/build/widgets/grid/AbstractSelectionModel-min.js | JavaScript | gpl-3.0 | 498 |
'use strict';
app.controller('searchCtrl', function (
$scope,
$rootScope,
$http,
$stateParams,
SCapiService,
utilsService
) {
$scope.title = 'Results for: ' + $stateParams.q;
$scope.data = '';
var limit = 20;
SCapiService.search('tracks', limit, $stateParams.q)
.then(f... | kjutbring/soundnode-app | app/public/js/search/searchCtrl.js | JavaScript | gpl-3.0 | 1,228 |
/**
* Copyright (c) 2008-2012 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
* of the license.
*/
/*
* @include GeoExt/widgets/MapPanel.js
* @require OpenLayers/Layer.js
*/
/** api: (define)
* module = ... | piensa/worldmap | src/geonode-client/app/static/externals/geoext/lib/GeoExt/widgets/tree/LayerParamNode.js | JavaScript | gpl-3.0 | 8,435 |
var searchData=
[
['preorden_5fiterador',['preorden_iterador',['../classArbolGeneral_1_1reverse__preorden__iterador.html#a4aa0da8bfbc320a8daff98451ee65b6c',1,'ArbolGeneral::reverse_preorden_iterador']]]
];
| jojelupipa/Pr-ctica-final-ED | conecta-4/doc/html/search/related_2.js | JavaScript | gpl-3.0 | 208 |
import React from 'react'
import List from 'react-list'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
/** Component */
import AddressOutputListItem from './AddressOutputListItem.js'
@translate(['common'])
@inject('gui', 'send')
@observer
class AddressOutputList extends React.... | whphhg/vcash-ui | src/components/lists/AddressOutputList.js | JavaScript | gpl-3.0 | 1,611 |
(function( jStat, Math ) {
// generate all distribution instance methods
(function( list ) {
for ( var i = 0; i < list.length; i++ ) (function( func ) {
// distribution instance method
jStat[ func ] = function( a, b, c ) {
if (!( this instanceof arguments.callee )) return new arguments.callee( a, b, c )... | ccckmit/wd | db/wp/code/mathnode/jstat/distribution.js | JavaScript | mpl-2.0 | 17,641 |
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* 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/. */
//-------------------------------------------------------... | kostaspl/SpiderMonkey38 | js/src/tests/js1_7/geniter/regress-387871.js | JavaScript | mpl-2.0 | 1,075 |
// A list of void HTML elements
module.exports = ["area", "base", "br", "col", "command", "embed", "hr",
"img", "input", "keygen", "link", "meta", "param",
"source", "track", "wbr"];
| mozilla/slowparse | src/voidHtmlElements.js | JavaScript | mpl-2.0 | 219 |
import steps from 'consul-ui/tests/steps';
export default function({ assert, library }) {
return steps(assert, library);
}
| 42wim/consul | ui-v2/tests/acceptance/steps/steps.js | JavaScript | mpl-2.0 | 126 |
initSidebarItems({"struct":[["FontTemplateData","Platform specific font representation for Linux. The identifier is an absolute path, and the bytes field is the loaded data that can be passed to freetype and azure directly."]]}); | susaing/doc.servo.org | servo/gfx/platform/freetype/font_template/sidebar-items.js | JavaScript | mpl-2.0 | 229 |
/*
* Copyright (C) 2016 - 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 | spec/javascripts/jsx/collaborations/GettingStartedCollaborationsSpec.js | JavaScript | agpl-3.0 | 4,021 |
module.exports = function(app) {
var Role = app.models.Role;
Role.registerResolver('accountRole', function(role, context, cb) {
function reject(msg) {
console.log(msg);
process.nextTick(function() {
cb(null, false);
});
}
var userId = context.accessToken.userId;
if (!use... | PrudioHQ/prudio-app | server/boot/role-account.js | JavaScript | agpl-3.0 | 1,057 |
/*
* Copyright (C) 2016 - 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 | app/jsx/add_people/store.js | JavaScript | agpl-3.0 | 2,279 |
'use strict'
export default 'test-file-stub'
| gregorylegarec/cozy-collect | test/__mocks__/fileMock.js | JavaScript | agpl-3.0 | 46 |
/**
* @class NetProfile.form.WizardPane
* @extends Ext.form.Panel
*/
Ext.define('NetProfile.form.WizardPane', {
extend: 'Ext.form.Panel',
alias: 'widget.npwizardpane',
border: 0,
bodyPadding: 5,
width: 400,
scrollable: 'vertical',
doValidation: true,
doGetValues: true,
remotePrev: false,
remoteNext: false... | unikmhz/npui | netprofile_core/netprofile_core/static/webshell/form/WizardPane.js | JavaScript | agpl-3.0 | 432 |
function plusbutton(e,n){if("undefined"!=typeof e&&("undefined"==typeof n&&(n=null),null!=n)){var t=$(n).find(".select2-container").css("width");$(n).find("select").select2("destroy"),$("#"+e).append($(n).clone().removeClass("template").css("display","block")),$("#"+e).find("select").select2({width:t})}} | fusioninventory/fusioninventory-for-glpi | lib/plusbutton.min.js | JavaScript | agpl-3.0 | 305 |
describe("Product Report Controller", function () {
var scope, scope2, geoZoneData, levels, productData, facilityProductData, httpBackend;
levels = [{
"id": 5,
"code": "national",
"name": "National",
"levelNumber": 1
}, {
"id": 6,
"code": "province",
... | OpenLMIS/open-lmis | modules/openlmis-web/src/test/javascript/specs/reports/mozambique/product-report-controller-test.js | JavaScript | agpl-3.0 | 4,908 |
#!/usr/bin/env node
'use strict';
const exec = require('child_process').exec;
const spawn = require('child_process').spawn;
const AsciiTable = require('ascii-table');
const config = require('./config');
const lastTag = config.previousRelease;
const curVersion = config.releaseVersion;
const showOnlyFinalReport = true;... | mandl/radare2 | sys/release-notes/index.js | JavaScript | lgpl-3.0 | 10,423 |
(function() {
var URL, URL_PATTERN, defaults, urllite,
__hasProp = {}.hasOwnProperty;
URL_PATTERN = /^(?:(?:([^:\/?\#]+:)\/+|(\/\/))(?:([a-z0-9-\._~%]+)(?::([a-z0-9-\._~%]+))?@)?(([a-z0-9-\._~%!$&'()*+,;=]+)(?::([0-9]+))?)?)?([^?\#]*?)(\?[^\#]*)?(\#.*)?$/;
urllite = function(raw, opts) {
return urllite.... | firdiansyah/crud-req | node_modules/urllite/lib/core.js | JavaScript | apache-2.0 | 1,925 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports ... | hwangkudong/sosongbot1 | node_modules/trim-right-x/lib/trim-right-x.js | JavaScript | apache-2.0 | 13,178 |
const St = imports.gi.St;
const Main = imports.ui.main;
const Tweener = imports.ui.tweener;
function init() {
}
function enable() {
}
function disable() {
}
| g97iulio1609/oneos-shell-extensions | oneos-shell-extensions/gnome-shell/extensions/workspaces@oneos/extension.js | JavaScript | apache-2.0 | 161 |
//// [classConstructorAccessibility2.ts]
class BaseA {
public constructor(public x: number) { }
createInstance() { new BaseA(1); }
}
class BaseB {
protected constructor(public x: number) { }
createInstance() { new BaseB(2); }
}
class BaseC {
private constructor(public x: number) { }
createIn... | thr0w/Thr0wScript | tests/baselines/reference/classConstructorAccessibility2.js | JavaScript | apache-2.0 | 4,825 |
'use strict';
var GroupsPage = require('./groups-dashboard');
var EditGroupPage = require('./edit');
var NewGroupPage = require('./new');
var AuthenticationPage = require('../../../commons/pages/authentication');
module.exports = new GroupsPage();
module.exports.editGroup = new EditGroupPage();
module.exports.newGrou... | nagyistoce/camunda-bpm-webapp | webapp/src/test/js/e2e/admin/pages/groups/index.js | JavaScript | apache-2.0 | 401 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.22-8-c-4
description: >
Array.prototype.reduceRight doesn't throw error when array has no
own properties but prototype contains a single property
---*/
... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js | JavaScript | apache-2.0 | 521 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.1.3.3
description: >
Deleting an entry does not break a [[MapData]] List.
info: >
Map.prototype.delete ( key )
4. Let entries be the List that is the value of ... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Map/prototype/delete/does-not-break-iterators.js | JavaScript | apache-2.0 | 890 |
define(["./WebApplicationData",
"storymaps/common/utils/CommonHelper",
"dojo/topic",
"esri/arcgis/utils"],
function(
WebApplicationData,
CommonHelper,
topic,
arcgisUtils
){
return function Data()
{
// Web map item and item data
var _webmapItem = null;
// Web app item
var _appItem = null... | ssylvia/story-map-journal-with-timeslider | src/app/storymaps/tpl/core/Data.js | JavaScript | apache-2.0 | 12,556 |
// Extend Alloy with construct / desctruct
require('controller').extendAlloy();
Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_NEAREST_TEN_METERS;
| PierreGUI/App | app/alloy.js | JavaScript | apache-2.0 | 151 |
'use strict';
testCases.push(function (dbType, context) {
var sortById = testUtils.sortById;
describe(dbType + ': test.matching-indexes.js', function () {
beforeEach(function () {
return context.db.bulkDocs([
{ name: 'Mario', _id: 'mario', rank: 5, series: 'Mario', debut: 1981 },
{ nam... | tyler-johnson/pouchdb | tests/find/test-suite-1/test.matching-indexes.js | JavaScript | apache-2.0 | 2,090 |
/**
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | radut/videojs-ima | examples/iPhone/ads.js | JavaScript | apache-2.0 | 3,135 |
/*
Copyright 2011-2012 Lukas Vlcek
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 t... | cyril-kantuban/elasticsearch-rtf | plugins/bigdesk/_site/js/util/bigdesk_extension.js | JavaScript | apache-2.0 | 2,023 |
import {ListWrapper, MapWrapper, StringMapWrapper} from 'angular2/src/facade/collection';
import {stringify, looseIdentical, isJsObject} from 'angular2/src/facade/lang';
import {NO_CHANGE, Pipe} from './pipe';
export class KeyValueChangesFactory {
supports(obj):boolean {
return KeyValueChanges.supportsObj(obj);... | ajoslin/angular | modules/angular2/src/change_detection/pipes/keyvalue_changes.js | JavaScript | apache-2.0 | 10,791 |
import * as _ExperimentActions from './ExperimentActions';
export {_ExperimentActions as ExperimentActions};
import * as _VariationActions from './VariationActions';
export {_VariationActions as VariationActions};
import * as _StatsActions from './StatsActions';
export {_StatsActions as StatsActions};
| arawind/sieve | dashboard/client/src/js/actions/index.js | JavaScript | apache-2.0 | 305 |
define([], function () {
return {
host: "$host"
}
}); | OUNAVCON/WeatherWeb | org.weather.rest.test/processed-resources/js/settings.js | JavaScript | apache-2.0 | 66 |
/*******************************************************************************
* Copyright 2013-2014 Aerospike, 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://ww... | tonypujals/aerospike-client-nodejs | test/info.js | JavaScript | apache-2.0 | 1,877 |
function Carousel(slides, nav, opts) {
$slides = $(slides);
$nav = [].concat(nav).map(function(nav) { return $(nav); });
this.dom = {
slideParent: $slides.parent(),
slides: $slides,
navParent: $nav[0].parent(),
nav: $nav,
window: $(window)
}
this.current = 0;
this.len = this.dom.slides.... | georgemarshall/habitat | www/source/javascripts/carousel.js | JavaScript | apache-2.0 | 2,706 |
!function(t){"use strict";t.extend(t.fn.select2.defaults,{formatNoMatches:function(){return"\u6c92\u6709\u627e\u5230\u76f8\u7b26\u7684\u9805\u76ee"},formatInputTooShort:function(t,n){var o=n-t.length;return"\u8acb\u518d\u8f38\u5165"+o+"\u500b\u5b57\u5143"},formatInputTooLong:function(t,n){var o=t.length-n;return"\u8acb... | jaskaran-singh/spree_store | public/assets/select2_locale_zh-TW-cbdb61883de6a19c2021cca4df946afc.js | JavaScript | apache-2.0 | 581 |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var M1;
(function (M1) {
var A = (function () {
function A() {
}
... | popravich/typescript | tests/baselines/reference/typeValueConflict1.js | JavaScript | apache-2.0 | 701 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
RegExp.prototype.exec behavior depends on global property.
If global is true next exec calling start to match from lastIndex position
es5id: 15.10.6.2_A4_T3
descript... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js | JavaScript | apache-2.0 | 2,776 |
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | plista/amphtml | extensions/amp-brightcove/0.1/test/test-amp-brightcove.js | JavaScript | apache-2.0 | 2,955 |
/// Copyright (c) 2009 Microsoft Corporation
///
/// 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 conditions and
/// ... | hnafar/IronJS | Src/Tests/ietestcenter/chapter15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-1.js | JavaScript | apache-2.0 | 2,340 |
goog.provide('ol.format.GML');
goog.provide('ol.format.GML3');
goog.require('goog.asserts');
goog.require('goog.dom.NodeType');
goog.require('ol');
goog.require('ol.array');
goog.require('ol.Feature');
goog.require('ol.extent');
goog.require('ol.format.Feature');
goog.require('ol.format.GMLBase');
goog.require('ol.for... | NOAA-ORR-ERD/ol3 | src/ol/format/gml/gml3format.js | JavaScript | bsd-2-clause | 42,305 |
/*******************************************************************************
Copyright (c) 2012, S-Core.
All rights reserved.
Use is subject to license terms.
This distribution may include materials developed by third parties.
**********************************************************************... | darkrsw/safe | tests/typing_tests/semantics/builtin_object22.js | JavaScript | bsd-3-clause | 587 |
/*
* Compatibility Plugin for jQuery 1.3 (on top of jQuery 1.4)
* All code copied from jQuery 1.4
* By John Resig
* Dual licensed under MIT and GPL.
*/
(function(jQuery) {
// .add() is no longer equivalent to .concat()
// Results are now returned in document order
jQuery.fn.add = function( selector, context )... | spazproject/spaz-desktop-air | vendors/jquery/jquery.compat-1.3.js | JavaScript | bsd-3-clause | 8,105 |
import { inherit } from './utils.js';
import * as regex from './regex.js';
/** @typedef {import('highlight.js').Mode} Mode */
/** @typedef {import('highlight.js').ModeCallback} ModeCallback */
// Common regexps
export const MATCH_NOTHING_RE = /\b\B/;
export const IDENT_RE = '[a-zA-Z]\\w*';
export const UNDERSCORE_IDE... | highlightjs/highlight.js | src/lib/modes.js | JavaScript | bsd-3-clause | 5,965 |
/*eslint-env mocha*/
/*global BOOMR_test,assert*/
describe("e2e/16-third-party-analytics/18-google-getall-undef", function() {
var tf = BOOMR.plugins.TestFramework;
var t = BOOMR_test;
it("Should pass basic beacon validation", function(done) {
t.validateBeaconWasSent(done);
});
it("Should have Google Analytic... | lognormal/boomerang | tests/page-templates/16-third-party-analytics/18-google-getall-undef.js | JavaScript | bsd-3-clause | 445 |
define(function(require, exports, module) {
var jsp = require("./parse-js"),
pro = require("./process"),
slice = jsp.slice,
member = jsp.member,
curry = jsp.curry,
MAP = pro.MAP,
PRECEDENCE = jsp.PRECEDENCE,
OPERATORS = jsp.OPERATORS;
function ast_squeeze_more(ast) {
var w = pro.as... | mamacdon/outliner | lib/UglifyJS/lib/squeeze-more.js | JavaScript | bsd-3-clause | 2,115 |
import {diffSentences} from '../../lib/diff/sentence';
import {convertChangesToXML} from '../../lib/convert/xml';
import {expect} from 'chai';
describe('diff/sentence', function() {
describe('#diffSentences', function() {
it('Should diff Sentences', function() {
const diffResult = diffSentences('New Value... | modulexcite/jsdiff | test/diff/sentence.js | JavaScript | bsd-3-clause | 791 |
/*
* Copyright (C) 2011 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... | windyuuy/opera | chromium/src/third_party/WebKit/Tools/GardeningServer/scripts/ui_unittests.js | JavaScript | bsd-3-clause | 8,716 |
o = { a: 1, b: 2 }
delete o.a
o.a = 3
for (i in o) { _<>_print(i+": "+o[i]) }
"PASS"
| darkrsw/safe | tests/interpreter_tests/for-in-4.js | JavaScript | bsd-3-clause | 86 |
/**
* useful colors for bash
*/
'use strict';
module.exports = {
black: '\x1b[0;30m',
dkgray: '\x1b[1;30m',
brick: '\x1b[0;31m',
red: '\x1b[1;31m',
green: '\x1b[0;32m',
lime: '\x1b[1;32m',
brown: '\x1b[0;33m',
yellow: '\x1b[1;33m',
navy: '\x1b[0;34m',
blue: '\x1b[1;34m',
... | slukashuk/blog-client | node_modules/webdriverio/lib/utils/colors.js | JavaScript | isc | 491 |
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
* @private
*/
var finalhandler = require('finalhandler');
var Router = require('./router');
... | laochoa/examenFinal | proyectoACO/node_modules/express/lib/application.js | JavaScript | mit | 14,845 |
document.write('Hello HTML'); | gvsi/klix | node_modules/nodeclipse/hello-html/index.js | JavaScript | mit | 29 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'preview', 'ja', {
preview: 'プレビュー'
} );
| ninsuo/touchscreen-video-player | src/BaseBundle/Resources/public/ckeditor/plugins/preview/lang/ja.js | JavaScript | mit | 221 |
var util = require('util');
function ConfigurationError(message) {
this.name = 'ConfigurationError';
this.message = message || 'Invalid configuration file given';
}
util.inherits(ConfigurationError, Error);
exports.ConfigurationError = ConfigurationError;
| mxm/slack-irc | lib/errors.js | JavaScript | mit | 262 |
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
dojo.require("dojox.gfx.svg");
dojo.experimental("dojox.gfx.svg_attach");
(function(){
dojox.gfx.attachNode=function(_1){
i... | bjorns/logger | src/main/webapp/js/dojox/gfx/svg_attach.js | JavaScript | mit | 4,882 |
// Authentication using passport, a node module
var passport = require('passport');
// logging out
exports.logout = function (req, res) {
req.logout();
res.redirect('/login');
};
module.exports.googleCallback = function (req, res) {
req.session.googleCredentials = req.authInfo;
// Return user profile back to clie... | pbrejcha/bunker | server/controllers/AuthController.js | JavaScript | mit | 347 |
'use strict';
let path = require('path');
let webpack = require('webpack');
module.exports = {
entry: {
maskedinput_defaultfunctionality: './app/maskedinput/defaultfunctionality/main.ts',
maskedinput_fluidsize: './app/maskedinput/fluidsize/main.ts',
maskedinput_events: './app/maskedinput/ev... | luissancheza/sice | js/jqwidgets/demos/angular/webpack.config8.js | JavaScript | mit | 5,420 |
/*
* Crypto-JS v2.5.3
* http://code.google.com/p/crypto-js/
* (c) 2009-2012 by Jeff Mott. All rights reserved.
* http://code.google.com/p/crypto-js/wiki/License
*/
(function(){
// Shortcuts
var C = Crypto,
util = C.util,
charenc = C.charenc,
UTF8 = charenc.UTF8,
Binary = charenc.Binary;
var MARC4... | magnux/AutobahnJS | cryptojs/marc4/marc4.js | JavaScript | mit | 2,120 |
lychee.define('game.entity.Ball').includes([
'lychee.game.Sprite'
]).exports(function(lychee, game, global, attachments) {
var _texture = attachments['png'];
var Class = function() {
var settings = {
radius: 11,
collision: lychee.game.Entity.COLLISION.A,
shape: lychee.game.Entity.SHAPE.circle,... | nspforever/lycheeJS | game/pong/source/entity/Ball.js | JavaScript | mit | 490 |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('index', {
title: 'Express'
});
});
module.exports = router;
| boostcode/torijs | routes/index.js | JavaScript | mit | 205 |
"use strict";
var CSSStyleDeclaration = require("cssstyle").CSSStyleDeclaration;
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var notImplemented = require("./not-implemented");
var History = require("./history");
var VirtualConsole = require("../virtual-console");
var define = require("../utils").def... | kesla/jsdom | lib/jsdom/browser/Window.js | JavaScript | mit | 14,071 |
import path from 'path';
/*
* Return path to write file to inside outputDir.
*
* @param {object} svgPathObj
* path objects from path.parse
*
* @param {string} innerPath
* Path (relative to options.svgDir) to svg file
* e.g. if svgFile was /home/user/icons/path/to/svg/file.svg
* options.svgDir is /home/use... | lgollut/material-ui | packages/material-ui-icons/renameFilters/default.js | JavaScript | mit | 866 |
var Builder = require('../index');
var expect = require('chai').expect;
var toFileURL = require('../lib/utils.js').toFileURL;
var fs = require('fs');
suite('Test compiler cache', function() {
var builder = new Builder('test/fixtures/test-cache-tree');
builder.config({ transpiler: 'babel' });
test('Use compile c... | jrauschenbusch/builder | test/test-build-cache.js | JavaScript | mit | 8,430 |
'use strict';
module.exports = {
isModuleUnificationProject(project) {
return project && project.isModuleUnification && project.isModuleUnification();
}
}; | bjornharrtell/ember-paper | blueprints/module-unification.js | JavaScript | mit | 165 |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
// import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// registerServiceWorker();
| Dermah/spooky-timer | src/index.js | JavaScript | mit | 260 |
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.cometd.timestamp"]){dojo._hasResource["dojox.cometd.timestamp"]=true;dojo.provide("dojox.comet... | Goldcap/TAHealth | web/js/dojo/dojox/cometd/timestamp.js | JavaScript | mit | 467 |