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 |
|---|---|---|---|---|---|
Ext.namespace('Ext.ux.plugin');
Ext.onReady(function(){
/* This important rule solves many of the <object/iframe>.reInit issues encountered
* when setting display:none on an upstream(parent) element (on all Browsers except IE).
* This default rule enables the new Panel:hideMode 'nosize'. T... | Eric-Brison/dynacase-core | Zone/Ui/uxvismode.js | JavaScript | agpl-3.0 | 9,949 |
/*
* 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/coffeescripts/api/enrollmentTermsApiSpec.js | JavaScript | agpl-3.0 | 3,227 |
'use strict';
/* jshint node: true */
var logger = require('nlogger').logger(module);
var express = require('express');
var _ = require('underscore');
var config = require('./config');
var poller = require('./poller');
var app = module.exports = express.createServer();
var reports = {};
function reapOldReports() {... | stainsby/redflare | app.js | JavaScript | agpl-3.0 | 1,636 |
OC.L10N.register(
"settings",
{
"Delete" : "తొలగించు",
"Server address" : "సేవకి చిరునామా",
"Cancel" : "రద్దుచేయి",
"Email" : "ఈమెయిలు",
"Your email address" : "మీ ఈమెయిలు చిరునామా",
"Password" : "సంకేతపదం",
"New password" : "కొత్త సంకేతపదం",
"Language" : "భాష",
"Name" : "పేర... | jacklicn/owncloud | settings/l10n/te.js | JavaScript | agpl-3.0 | 668 |
OC.L10N.register(
"settings",
{
"Enabled" : "Włączone",
"Not enabled" : "Nie włączone",
"Wrong password" : "Złe hasło",
"Saved" : "Zapisano",
"No user supplied" : "Niedostarczony użytkownik",
"Unable to change password" : "Nie można zmienić hasła",
"Authentication error" : "Błąd uwie... | jbicha/server | settings/l10n/pl.js | JavaScript | agpl-3.0 | 24,071 |
/*
* Copyright (C) 2012 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | app/coffeescripts/calendar/EditAssignmentDetails.js | JavaScript | agpl-3.0 | 10,456 |
/*
* Ext JS Library 2.3.0
* Copyright(c) 2006-2009, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
/**
* @class Ext.form.Label
* @extends Ext.BoxComponent
* Basic Label field.
* @constructor
* Creates a new Label
* @param {Ext.Element/String/Object} config The configuration opt... | xwiki-labs/sankoreorg | web/src/main/webapp/skins/curriki20/extjs/source/widgets/form/Label.js | JavaScript | lgpl-2.1 | 2,602 |
/*
* This file is part of Cockpit.
*
* Copyright (C) 2015 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any l... | andreasn/cockpit | pkg/kubernetes/scripts/test-kube-client.js | JavaScript | lgpl-2.1 | 34,267 |
// Copyright 2005 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... | andrewschaaf/closure-library-mirror | closure/goog/events/eventtarget.js | JavaScript | apache-2.0 | 6,787 |
/**
* Copyright JS Foundation and other contributors, http://js.foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | MaxXx1313/my-node-red | editor/js/ui/clipboard.js | JavaScript | apache-2.0 | 13,673 |
//// [subtypingWithCallSignaturesA.ts]
declare function foo3(cb: (x: number) => number): typeof cb;
var r5 = foo3((x: number) => ''); // error
//// [subtypingWithCallSignaturesA.js]
var r5 = foo3(function (x) { return ''; });
| DickvdBrink/TypeScript | tests/baselines/reference/subtypingWithCallSignaturesA.js | JavaScript | apache-2.0 | 232 |
define(function(require, exports, module) {
var $ = require('jquery');
var leftBtn =$('#company-list').find('.left-btn'),
rightBtn = $('#company-list').find('.right-btn'),
show = $('#company-list').find('.show');
module.exports = {
i:0,
// 处理鼠标移入移出事件
onHoverAndOut: func... | despise-all/front-demo | jike home page/js/cooperation-company.js | JavaScript | apache-2.0 | 1,646 |
'use strict';
//debugger;
//pageSetUp();
var soProfiling;
var soProfileInstance = function() {
soProfiling = new soProfilingObject();
soProfiling.Load();
};
var soProfilingObject = function() {
var THIS = this;
var numberFormat = d3.format(",f");
THIS.type = "materialCount";
//constructTabs(THIS... | Durgesh1988/core | client/htmls/public/js/jiraprofiling/e2e_JiraProfiling.js | JavaScript | apache-2.0 | 32,814 |
import './styles.scss';
import {View} from 'backbone';
import {className} from '../../decorators';
import bem from 'b_';
import $ from 'jquery';
import {defaults} from 'underscore';
export const POSITION = {
'top': function({top, left, width}, {offset}, tipSize) {
return {
top: top - tipSize.he... | TpSr52/allure2 | allure-generator/src/main/javascript/components/tooltip/TooltipView.js | JavaScript | apache-2.0 | 2,793 |
const handleError = (message) => {
$("#errorMessage").text(message);
$("#domoMessage").animate({width:'toggle'},350);
}
const sendAjax = (action, data) => {
$.ajax({
cache: false,
type: "POST",
url: action,
data: data,
dataType: "json",
success: (result, status, xhr) => {
$("#domoMe... | CScavone96/DomomakerA | client/client.js | JavaScript | apache-2.0 | 1,835 |
/// <reference path="../../services/office365/scripts/utility.js" />
/// <reference path="../../services/office365/scripts/o365adal.js" />
/// <reference path="../../services/office365/scripts/exchange.js" />
(function () {
'use strict';
angular.module('app365').controller('calendarDetailCtrl', ['$scope', '$... | OfficeDev/Cordova-Calendar-App-Code-Sample | app/calendar/calendar-detail-ctrl.js | JavaScript | apache-2.0 | 1,637 |
define({
"viewer": {
"common": {
"close": "Lukk",
"focusMainstage": "Send tastaturfokus til media",
"expandImage": "Utvid bilde"
},
"a11y": {
"skipToContent": "Gå til fortelling",
"headerAria": "Historieoverskrift",
"panelAria": "Historiefortelling",
"mainStageAri... | Esri/map-journal-storytelling-template-js | src/resources/tpl/viewer/nls/nb/template.js | JavaScript | apache-2.0 | 7,637 |
Bridge.merge(new System.Globalization.CultureInfo("kn", true), {
englishName: "Kannada",
nativeName: "ಕನ್ನಡ",
numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), {
nanSymbol: "NaN",
negativeSign: "-",
positiveSign: "+",
negativeInfinitySymbol: "-∞",
... | AndreyZM/Bridge | Bridge/Resources/Locales/kn.js | JavaScript | apache-2.0 | 3,779 |
'use strict';
innoApp
.controller('HeaderCtrl',["$scope", "AuthService", function ($scope,AuthService) {
// Fetching role name
$scope.role = AuthService.getRole();
//Setting menu for admin and other user dynamic
if($scope.role === "admin"){
$scope.menu = [
{ name: 'user'},
{ nam... | riyazbhanvadia/Angular-base-structure | inno/app/lucius/common/controller/header.js | JavaScript | apache-2.0 | 353 |
var
utils = require('enyo/utils'),
kind = require('enyo/kind');
describe('language', function () {
describe('usage', function () {
describe('Callee', function () {
var dn = '';
var fn = function() {
dn = arguments.callee.displayName;
};
it('should have proper callee', function () {
fn.displ... | enyojs/enyo | test/tests/lang.js | JavaScript | apache-2.0 | 3,991 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... | raml-org/raml-dotnet-parser-2 | source/Raml.Parser/node_modules/raml-1-0-parser/node_modules/webpack/test/js/normal/loaders/css-loader/bundle.js | JavaScript | apache-2.0 | 5,685 |
/*+***********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Dev... | gdbhosale/vtigerTemplate | isleenlayout/modules/Settings/Picklist/resources/Picklist.js | JavaScript | apache-2.0 | 25,072 |
'use strict'
// dependencies
var path = require('path'),
request = require('request'),
// container connections
ccs = [];
// function to get all containers
function GetAllContainers(host, func) {
request({
json: true,
method: 'GET',
uri: host + '/containers/json'
... | elgalu/docker-mon | utils/index.js | JavaScript | apache-2.0 | 1,264 |
// InstrumentClone.js
//
// Copyright 2018 High Fidelity, Inc.
// Created by Robin Wilson 7/5/2018
// Expands on guitarMexico.js created by Rebecca Stankus 01/31/18
//
// Entity script that plays the sound while holding the entity.
// Chooses the sound bite randomly from a list passed in.
// Takes two parameters :
//... | RebeccaStankus/hifi-content | DomainContent/Korea/Instruments/InstrumentClone.js | JavaScript | apache-2.0 | 6,371 |
/**
* Convenient Redis Storage mock for testing purposes
*/
var util = require ('util');
function StorageMocked(data){
data = data || {};
this.currentOutage = data.currentOutage;
}
exports = module.exports = StorageMocked;
StorageMocked.prototype.startOutage = function (service, outageData, callback) {
this... | metao1/WatchSite | test/lib/mock/storage-mocked.js | JavaScript | apache-2.0 | 1,023 |
/*
* Copyright (C) 2015-2017 NS Solutions Corporation, All Rights Reserved.
*/
(function() {
/**
* @namespace hifive.pitalium.explorer.constant
*/
h5.u.obj.expose('hifive.pitalium.explorer.constant', {});
})(); | hifive/hifive-test-explorer | pitalium-explorer/src/main/webapp/src/common/constant.js | JavaScript | apache-2.0 | 226 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
export default [
[
... | HeH-Projects/team-agozzino | frontend/node_modules/@angular/common/locales/extra/sw-KE.js | JavaScript | apache-2.0 | 624 |
/*! jQuery UI - v1.12.0 - 2016-07-11
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed */
!function(a){"function"==typeof define&&define.amd?define(["jquery","./version","./escape-selector"],a):a(jQuery)}(function(a){return a.fn.labels=function(){var b,c,d,e,f;return this[0].label... | weilinghsu/mesFrontend | bower_components/jquery-ui/ui/minified/labels.js | JavaScript | apache-2.0 | 603 |
/*******************************************************************************
* 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... | aerospike/concurrency-control-tic-tac-toe | node_modules/aerospike/examples/range_put.js | JavaScript | apache-2.0 | 6,299 |
/* Copyright (C) Relevance Lab Private Limited- All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Relevance UI Team,
* Aug 2015
*/
(function (angular) {
"use strict";
angular.module('dashboard')
.controller('orchestration... | RLOpenCatalyst/core | client/cat3/src/partials/sections/dashboard/popups/controller/orchestrationUpdateChefRunlistCtrl.js | JavaScript | apache-2.0 | 8,023 |
(function () {
module.exports = {
error: function () {
console.error.apply(console,arguments)
}
}
})() | timbur/Unreal.js | Plugins/UnrealJS/Content/Scripts/internal/util.js | JavaScript | apache-2.0 | 138 |
var searchData=
[
['revision_20history_20of_20cmsis_2dpack',['Revision History of CMSIS-Pack',['../pack_revisionHistory.html',1,'index']]]
];
| STMicroelectronics/cmsis_core | docs/Pack/html/search/pages_6.js | JavaScript | apache-2.0 | 144 |
/**
*
* @authors Your Name (you@example.org)
* @date 2015-11-23 12:01:49
* @version $Id$
*/
/**
*
* @authors Your Name (you@example.org)
* @date 2015-11-06 11:48:36
* @version $$Id$$
*/
var $$ = function(el) {
return new _$$(el);
};
var _$$ = function(el) {
this.el = (el && el.nodeType =... | freiby/flex | server/nirvana-workbench/src/main/webapp/framework/js/EventFrame.js | JavaScript | apache-2.0 | 4,139 |
module.exports = function(grunt){
var config = {
docs: {
dir: "./test",
target: "./doc/TestPlan.md"
}
};
return config;
};
| tev/cornerstone-grunt | src/tasks/cornerstone-docs/config.js | JavaScript | apache-2.0 | 150 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/recoveryServicesBackupManagement/lib/models/workloadItemResourceList.js | JavaScript | apache-2.0 | 1,545 |
/**
* 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... | sekikn/ambari | ambari-web/test/controllers/main/service/info/metric_test.js | JavaScript | apache-2.0 | 3,482 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The scope chain is initialised to contain the same objects,
in the same order, as the calling context's scope chain
es5id: 10.4.2_A1.1_T10
description: eval within g... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/language/eval-code/S10.4.2_A1.1_T10.js | JavaScript | apache-2.0 | 617 |
/*
* 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/datafactoryManagement/lib/models/netezzaSource.js | JavaScript | apache-2.0 | 1,945 |
var searchData=
[
['shadow_5fack_5fstatus_5ft',['Shadow_Ack_Status_t',['../aws__iot__shadow__interface_8h.html#ad946163c2ac5df0aa896520949d47956',1,'aws_iot_shadow_interface.h']]],
['shadowactions_5ft',['ShadowActions_t',['../aws__iot__shadow__interface_8h.html#a1fc9e025434023d44d33737f8b7c2a8c',1,'aws_iot_shadow_i... | chainlinq/boatkeeper | linux_mqtt_mbedtls-2.1.1/docs/html/search/enums_5.js | JavaScript | apache-2.0 | 338 |
import { expect } from 'chai';
import { targeting as targetingInstance, filters, getHighestCpmBidsFromBidPool, sortByDealAndPriceBucketOrCpm } from 'src/targeting.js';
import { config } from 'src/config.js';
import { createBidReceived } from 'test/fixtures/fixtures.js';
import CONSTANTS from 'src/constants.json';
impor... | gumgum/Prebid.js | test/spec/unit/core/targeting_spec.js | JavaScript | apache-2.0 | 43,362 |
/*
jjs -Djava.system.class.loader=io.trivium.TriviumLoader -Djava.protocol.handler.pkgs=io.trivium.urlhandler -server -cp bnd-tibco-ems-receiver:tpe-timer:tsk-consoleLogger:bnd-timer:tpe-timerconfig:tsk-excel2table:tpe-error:tpe-timertick:tsk-java-compiler:tpe-logentry:trivium-core:tsk-js-runner:tpe-table:tsk-TimerTick... | trivium-io/trivium-core | src/starter.js | JavaScript | apache-2.0 | 703 |
/**
* Copyright (c) 2008-2009 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.
*/
/** api: example[attribute-form]
* Attribute Form
* --------------
* Create a form with fields from attri... | mangadul/rutilahu-web | assets/js/geoext/examples/attribute-form.js | JavaScript | apache-2.0 | 1,488 |
const constants = require('./constants.js');
const AWS = constants.AWS;
const DYNAMODB_TABLE = constants.DYNAMODB_TABLE;
const model = require('./model.json'); // a static copy of your model, used to suggest custom slot values
module.exports = {
'randomArrayElement': function(myArray) {
return(myArray[Ma... | SleepyDeveloper/alexa-cookbook | tools/TestFlow/sampleskill2/helpers.js | JavaScript | apache-2.0 | 12,083 |
import { test } from 'ember-qunit';
import moduleFor from 'open-event-frontend/tests/helpers/unit-helper';
moduleFor('controller:public/cfs/new-speaker', 'Unit | Controller | public/cfs/new speaker', []);
test('it exists', function(assert) {
let controller = this.subject();
assert.ok(controller);
});
| harshitagupta30/open-event-frontend | tests/unit/controllers/public/cfs/new-speaker-test.js | JavaScript | apache-2.0 | 308 |
var mailServiceRoutes = (function () {
'use strict';
var HTTPStatus = require('http-status'),
express = require('express'),
tokenAuthMiddleware = require('../middlewares/token.authentication.middleware'),
roleAuthMiddleware = require('../middlewares/role.authorization.middleware'),
... | avsek477/blogSite | lib/routes/email.service.configure.route.js | JavaScript | apache-2.0 | 23,312 |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... | jorisnicolas/moodlemobile2 | www/core/directives/browser.js | JavaScript | apache-2.0 | 2,257 |
function test() {
let tempScope = {};
Components.utils.import("resource://gre/modules/InlineSpellChecker.jsm", tempScope);
let InlineSpellChecker = tempScope.InlineSpellChecker;
ok(InlineSpellChecker, "InlineSpellChecker class exists");
for (var fname in tests) {
tests[fname]();
}
}
let tests = {
//... | sergecodd/FireFox-OS | B2G/gecko/toolkit/content/tests/browser/browser_InlineSpellChecker.js | JavaScript | apache-2.0 | 12,254 |
import Marked from 'marked'
import hljs from 'highlight.js'
const renderer = new Marked.Renderer()
export const toc = []
renderer.heading = function(text, level) {
var slug = text.toLowerCase().replace(/\s+/g, '-')
toc.push({
level: level,
slug: slug,
title: text
})
return `<h${level}><a href='#${... | Smallpath/Blog | admin/src/components/utils/marked.js | JavaScript | apache-2.0 | 773 |
/* 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/. */
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cr = Components.results;
Components.utils... | sergecodd/FireFox-OS | B2G/gecko/mobile/android/components/LoginManagerPrompter.js | JavaScript | apache-2.0 | 17,631 |
/*global module: false, require: false, console: false */
'use strict';
var React = require('react');
var PureRenderMixin = require('./PureRenderMixin');
var DataTable = require('react-data-components-bd2k').DataTable;
require('react-data-components-bd2k/css/table-twbs.css');
function buildHeader(onClick, title) {
r... | vipints/brca-website | js/VariantTable.js | JavaScript | apache-2.0 | 1,469 |
'use strict';
// ------------------------------------------------------------------------------------------ Test Dependencies
var fs = require('fs');
var path = require('path');
var should = require('chai').should();
var nconf = require('nconf');
nconf.argv()
.env()
.file('local', { file: path.join(__dirname, '..... | YouTransfer/YouTransfer | test/views/index/index.test.js | JavaScript | apache-2.0 | 12,162 |
/* jshint globalstrict:true, strict:true, maxlen: 5000 */
/* global describe, before, after, it, require*/
// //////////////////////////////////////////////////////////////////////////////
// / @brief tests for user access rights
// /
// / @file
// /
// / DISCLAIMER
// /
// / Copyright 2017 ArangoDB GmbH, Cologne, Ger... | hkernbach/arangodb | js/client/tests/authentication/user-access-right-drop-graph-spec.js | JavaScript | apache-2.0 | 8,646 |
var libCssList = [
"bootstrap/dist/css/bootstrap.css",
"bootstrap/dist/css/bootstrap-theme.css"
];
var basePath = "lib/";
for (var fileIndex = 0; fileIndex < libCssList.length; fileIndex++) {
libCssList[fileIndex] = basePath + libCssList[fileIndex];
}
module.exports = libCssList;
| monitise-mea/gerrit-dashboard-web | config/paths/lib-css-list.js | JavaScript | apache-2.0 | 296 |
/* @flow */
import { PropTypes } from 'react';
export function notImplemented(props: Object, propName: string, componentName: string): ?Error {
if (props[propName]) {
return new Error(`<${componentName}> "${propName}" is not implemented.`);
}
return null;
}
export function falsy(props: Object, propName: st... | Right-Men/Ironman | node_modules/react-router-native/modules/PropTypes.js | JavaScript | apache-2.0 | 570 |
var site = function (tenantId, options) {
var tag, tags, rate, asset, assets,
carbon = require('carbon'),
store = require('/modules/store.js'),
path = '/_system/governance/sites/' + options.provider + '/' + options.name + '/' + options.version,
server = require('store').server,
/... | cnapagoda/wso2Store | publisher/modules/deployer.js | JavaScript | apache-2.0 | 7,175 |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | bpaduch/amphtml | 3p/environment.js | JavaScript | apache-2.0 | 6,816 |
module("tinymce.EnterKey", {
setupModule: function() {
QUnit.stop();
tinymce.init({
selector: "textarea",
plugins: wpPlugins,
add_unload_trigger: false,
disable_nodechange: true,
indent: false,
skin: false,
entities: 'raw',
schema: 'html5',
extended_valid_elements: 'div[id|style|content... | chiss22/letusquoteyou | www/wordpress-develop/tests/qunit/editor/tinymce/EnterKey.js | JavaScript | apache-2.0 | 39,319 |
var baseAt = require('../internal/baseAt'),
baseFlatten = require('../internal/baseFlatten'),
restParam = require('../function/restParam');
/**
* Creates an array of elements corresponding to the given keys, or indexes,
* of `collection`. Keys may be specified as individual arguments or as arrays
* of keys.... | ionutbarau/petstore | petstore-app/src/main/resources/static/node_modules/lodash/collection/at.js | JavaScript | apache-2.0 | 940 |
// module export
if (typeof define === "function" && define.amd) {
// AMD
define("bridge", [], function () { return Bridge; });
} else if (typeof module !== "undefined" && module.exports) {
// Node
module.exports = Bridge;
}
| AndreyZM/Bridge | Bridge/Resources/.auxiliary/End.js | JavaScript | apache-2.0 | 273 |
/**
* node buildHardBenchmark.js ./wiki_benchmark ./soft_benchmark
*
* nohup node buildSoftBenchmark.js ./soft_benchmark > buildSoftBenchmark.out 2>&1&
*/
var fs = require('fs');
var csv = require('csv');
//var outputDir = process.argv[2];
var targetBenchmarkDir = process.argv[2];
var surfaceFormsScores = [];
v... | ilasek/SemiTags | NerIndexingSupport/wiki_benchmark/buildSoftBenchmark.js | JavaScript | apache-2.0 | 7,326 |
/**
* Configure app in a block instead of hard-coding values inside the scripts.
*/
var config = {
//domain: 'http://localhost:63342/FeatureScapeApps',
domain: '/featurescapeapps',
quipUrl: '/camicroscope/osdCamicroscope.php',
//reserve4Url: 'http://reserve4.informatics.stonybrook.edu/dev1/osdCamicros... | ajasniew/ViewerDockerContainer | html/featurescapeapps/js/config.js | JavaScript | apache-2.0 | 609 |
/**
* Select2 Italian translation
*/
(function ($) {
"use strict";
$.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Nessuna corrispondenza trovata"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter... | jaskaran-singh/spree_store | public/assets/select2_locale_it-e45548dc93d14ad49b80a69023ecfd28.js | JavaScript | apache-2.0 | 806 |
/**
* @license
* Copyright 2015 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
*/
CLASS({
pack... | jlhughes/foam | js/foam/apps/builder/wizard/NewOrExistingModelWizard.js | JavaScript | apache-2.0 | 2,478 |
/*
* Copyright (c) 2015-2016 Fraunhofer FOKUS
*
* 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... | fhg-fokus-nubomedia/nubomedia-paas | src/main/resources/static/bower_components/jquery/src/ajax/parseXML.js | JavaScript | apache-2.0 | 1,095 |
// Based on https://github.com/chrisvfritz/vue-enterprise-boilerplate/blob/master/src/components/_globals.js
// Globally register all base components for convenience, because they
// will be used very frequently. Components are registered using the
// PascalCased version of their file name.
import Vue from 'vue';
impo... | mssola/Portus | app/assets/javascripts/globals.js | JavaScript | apache-2.0 | 1,270 |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
define([
'underscore',
'backbone',
'knockout',
"protocol",
'contrail-model',
'query-or-model',
'query-and-model',
'core-basedir/reports/qe/ui/js/common/qe.utils',
'contrail-list-model',
], function (_, Backbone... | nagakiran/contrail-web-core | webroot/js/models/QueryFormModel.js | JavaScript | apache-2.0 | 30,991 |
/**
* jQuery Twitter Bootstrap Flickr Carousel v1.0.0
* http://jguadagno.github.io/twbs-FlickrCarousel/
*
* Copyright 2014, Joseph Guadagno
* Released under Apache 2.0 license
* http://apache.org/licenses/LICENSE-2.0.html
*/
;
(function ($, window, document, undefined) {
'use strict';
var old = $.fn.twbsFlick... | coderwurst/twbs-flickrCarousel | js/jquery.twbsFlickrCarousel.js | JavaScript | apache-2.0 | 10,017 |
//
// Touches the DOM.
// This file listens to events from the language selector and changes the
// DOM to have the language requested.
// Uses globals from chal-header.html.
//
// Selecting the current locale
var selector = document.getElementById('lang-select')
// add change listener
selector.addEventListener('chan... | jlord/git-it-electron | lib/languages.js | JavaScript | bsd-2-clause | 533 |
'use strict';
// utility for field
require('./globals');
var consts = require('./consts'),
c = consts.shorthand,
time = require('./compiler/time'),
util = require('./util'),
schema = require('./schema/schema');
var vlfield = module.exports = {};
/**
* @param field
* @param opt
* opt.nofn -- exclude bi... | vivekratnavel/vega-lite | src/field.js | JavaScript | bsd-3-clause | 5,310 |
import React, { Component } from 'react';
import Steps from './widgets/steps/steps';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
const styles = {
container: {
display: 'flex',
justifyContent: 'space-around',
flexDirection: 'column',
marginBottom: '1vh',
... | desihub/qlf | frontend/src/screens/qa/qa.js | JavaScript | bsd-3-clause | 2,995 |
// 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.
'use strict';
const {isLitHtmlTemplateCall} = require('./utils.js');
module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Ch... | ChromeDevTools/devtools-frontend | scripts/eslint_rules/lib/ban_self_closing_custom_element_tagnames.js | JavaScript | bsd-3-clause | 1,026 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/... | Maxwell2022/react-native | packager/src/Server/index.js | JavaScript | bsd-3-clause | 29,966 |
'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
... | mudunuriRaju/tlr-live | tollbackend/web/js/angular-1.5.5/i18n/angular-locale_wae-ch.js | JavaScript | bsd-3-clause | 4,235 |
"use strict";;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = __importDefault(require("./types"));
function default_1(fork) {
var types = fork.use(... | endlessm/chromium-browser | third_party/devtools-frontend/src/node_modules/ast-types/lib/shared.js | JavaScript | bsd-3-clause | 1,900 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
//<script>
$(document).ready(function() {
var curSource = "/alliance/dutylist/calendarsearch";
$('#dutylsitCale... | m-ishchenko/AllianceCG | web/js/modules/alliance/dutylist/calendar.js | JavaScript | bsd-3-clause | 8,663 |
var MemoryBlogStore = require('./MemoryBlogStore');
var blogStore = new MemoryBlogStore();
blogStore.addPost({
text: 'Hello'
}, function(err, post) {
console.log(err, post);
});
blogStore.addPost({
text: 'Hello'
}, function(err, post) {
console.log(err, post);
});
blogStore.addPost({
text: 'Hello'
}, function(... | galynacherniakhivska/Blog | server/sandbox.js | JavaScript | isc | 537 |
var mysql = require('mysql');
function mysqlConn(config,logger) {
this.connectionPool = mysql.createPool(config);
this.initialized = true;
this.logger = logger;
}
mysqlConn.prototype = {
/// if the raw connection is needed
getConnection: function (callback) {
if (!this.initialized) {
... | javuio/MySQLNodeBootstrapAngular | modules/mDAL/mysql/mysqlDAL.js | JavaScript | mit | 5,078 |
'use strict';
define([
'three',
'explorer',
'underscore'
], function(
THREE,
Explorer,
_
) {
var mp3names = ['crystalCenter', 'cellCollision', 'atomCollision', 'popOutOfAtom', 'dollHolder', 'atomUnderDoll', 'navCube', 'dollArrived', 'leapGrab', 'leapNoGrab'];
function Sound(animationMachine) {
... | gvcm/CWAPP | scripts/sound.js | JavaScript | mit | 6,026 |
YUI.add("lang/gallery-message-format_lv",function(e){e.Intl.add("gallery-message-format","lv",{pluralRule:"set6"})},"gallery-2013.04.10-22-48");
| inikoo/fact | libs/yui/yui3-gallery/build/gallery-message-format/lang/gallery-message-format_lv.js | JavaScript | mit | 145 |
'use strict';
/* jshint -W030 */
var chai = require('chai')
, expect = chai.expect
, Support = require(__dirname + '/../support')
, DataTypes = require(__dirname + '/../../../lib/data-types')
, Sequelize = Support.Sequelize
, dialect = Support.getTestDialect()
, sinon = require('sinon');
describe(Support.... | topikachu/sequelize | test/integration/hooks/hooks.test.js | JavaScript | mit | 14,781 |
//
// tselect01.js
// Test for select
//
if(typeof exports === 'object') {
var assert = require("assert");
var alasql = require('..');
};
describe('Create database', function(){
it('Create new database', function(done) {
var db = new alasql.Database();
assert.deepEqual(db.tables, {});
done()... | kanghj/alasql | test/test108.js | JavaScript | mit | 342 |
/**
* Returns the string, with after processing the following backslash escape sequences.
*
* attacklab: The polite way to do this is with the new escapeCharacters() function:
*
* text = escapeCharacters(text,"\\",true);
* text = escapeCharacters(text,"`*_{}[]()>#+-.!",true);
*
* ...but we're sidestepping... | skiwer/myBlog | static/showdown/src/subParsers/encodeBackslashEscapes.js | JavaScript | mit | 913 |
const ts = require('typescript');
const utils = require('tsutils');
const Lint = require('tslint');
const ERROR_MESSAGE =
'A TODO may only appear in inline (//) style comments. ' +
'This is meant to prevent a TODO from being accidentally included in any public API docs.';
/**
* Rule that walks through all co... | nkwood/material2 | tools/tslint-rules/noExposedTodoRule.js | JavaScript | mit | 1,173 |
// this is just a demo. To run it execute from the root of repository:
//
// > npm start
//
// Then open ./example/index.html
//
module.exports.main = function () {
var graph = require('ngraph.generators').balancedBinTree(6);
var createPixiGraphics = require('../');
var pixiGraphics = createPixiGraphics(graph);
... | fobdy/ngraph.pixi | example/index.js | JavaScript | mit | 497 |
describe( 'AppCtrl', function() {
describe( 'isCurrentUrl', function() {
var AppCtrl, $location, $scope;
beforeEach( module( 'app' ) );
beforeEach( inject( function( $controller, _$location_, $rootScope ) {
$location = _$location_;
$scope = $rootScope.$new();
AppCtrl = $controller( 'Ap... | jjccww/poc | src/app/app.spec.js | JavaScript | mit | 495 |
<p>
Añadir nuevo comentario:
</p>
<p>
<form method="POST" action="/quizzes/<%=quiz.id%>/comments/">
<input type="text" id="comment" name="comment[text]" value="" placeholder="Comentario" /> <p>
<button type="submit">Enviar</button>
</form>
</p> | JavierAmorDeLaCruz/quiz | views/comments/new.js | JavaScript | mit | 272 |
YUI.add("y3d-texture",function(e,t){var n=e.Lang;e.Texture=e.Base.create("texture",e.Base,[],{},{ATTRS:{image:{value:null},imageUrl:{value:"",validator:n.isString},webglTexture:{value:null}}}),e.TextureLoader=e.Base.create("texture-loader",e.Base,[],{initializer:function(){var t=this,n=t.get("textures"),r=t.get("unload... | inikoo/fact | libs/yui/yui3-gallery/build/y3d-texture/y3d-texture-min.js | JavaScript | mit | 865 |
module.exports = {
entry: ["react", "react-dom", "lodash"]
}
| pugnascotia/webpack | test/benchmarkCases/libraries/webpack.config.js | JavaScript | mit | 62 |
/*
This utility processes the argument passed with the `lang` option
in ember-cli, i.e. `ember (new||init||addon) app-name --lang=langArg`
Execution Context (usage, input, output, error handling, etc.):
- called directly by `init` IFF `--lang` flag is used in (new||init||addon)
- receives single input: the argume... | ember-cli/ember-cli | lib/utilities/get-lang-arg.js | JavaScript | mit | 10,052 |
(function(b){var a=b.cultures,d=a.en,e=d.calendars.standard,c=a.no=b.extend(true,{},d,{name:"no",englishName:"Norwegian",nativeName:"norsk",language:"no",numberFormat:{",":" ",".":",",percent:{",":" ",".":","},currency:{pattern:["$ -n","$ n"],",":" ",".":",",symbol:"kr"}},calendars:{standard:b.extend(true,{},e,{"/":"."... | Leandro-b-03/SmartBracelet | public/library/javascripts/jquery.GlobalMoneyInput/globinfo/jQuery.glob.no.min.js | JavaScript | mit | 938 |
var EPOCH = 1900;
var PATTERN = /(\d+)[^\/|-]/g;
function iskabisat(year) {
if(year % 4 === 0){
if(year % 100 === 0 && year % 400 !== 0)
return false;
else
return true;
}
return false;
}
/*
* kabisats:
* Calculating how many kabisats' years in time span between
* given year and primor... | kadekParwanta/BaleKulkul_Server | server/models/Calendar.js | JavaScript | mit | 2,055 |
var _elm_lang$window$Native_Window = function()
{
var size = _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) {
callback(_elm_lang$core$Native_Scheduler.succeed({
width: window.innerWidth,
height: window.innerHeight
}));
});
return {
size: size
};
}(); | futoke/ar-project | web/client/elm-stuff/packages/elm-lang/window/1.0.1/src/Native/Window.js | JavaScript | mit | 278 |
/* ShipManager.js
KC3改 Ship Manager
Managesship roster and does indexing for data access.
Saves and loads list to and from localStorage
*/
(function(){
"use strict";
window.KC3ShipManager = {
list: {},
max: 100,
pendingShipNum: 0,
// Get a specific ship by ID
get :function( rosterId ){
... | ethrundr/KC3Kai | src/library/managers/ShipManager.js | JavaScript | mit | 3,115 |
/*
* 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.
*/
'... | lmazuel/azure-sdk-for-node | lib/services/recoveryServicesSiteRecoveryManagement/lib/models/createRecoveryPlanInput.js | JavaScript | mit | 1,634 |
describe("About Expects", function() {
// We shall contemplate truth by testing reality, via spec expectations.
it("should expect true", function() {
expect(true).toBeTruthy(); //This should be true
});
// To understand reality, we must compare our expectations against reality.
it("should expect equalit... | mchaperc/5.2-javascript-koans | koans/AboutExpects.js | JavaScript | mit | 1,162 |
/*
* 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.
*/
... | smithab/azure-sdk-for-node | lib/services/batch/lib/models/computeNodeListNextOptions.js | JavaScript | mit | 1,806 |
'use strict';
const common = require('../common');
const assert = require('assert');
const tick = require('./tick');
const initHooks = require('./init-hooks');
const { checkInvocations } = require('./hook-checks');
const fs = require('fs');
const hooks = initHooks();
hooks.enable();
fs.readFile(__filename, common.mu... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/async-hooks/test-fsreqwrap-readFile.js | JavaScript | mit | 1,626 |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... | csr1010/xmmagik | test/simple/test-stream-pipe-error-handling.js | JavaScript | mit | 1,890 |
import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import SettingsWrapper from '../SettingsWrapper';
test('renders if isEnabled', (t) => {
const wrapper = shallow(<SettingsWrapper isEnabled />);
t.true(wrapper.matchesElement(<div />));
});
test('renders with settings toggle whe... | ttrentham/Griddle | src/components/__tests__/SettingsWrapperTest.js | JavaScript | mit | 1,547 |
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"2":"D X g H L"},C:{"2":"0 2 3 4 RB F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r PB OB"},D:{"1":"0 2 4 8 m n o p q v w x y z s r DB AB SB BB","2":"F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h... | UrbanRiskSlumRedevelopment/Maya | node_modules/caniuse-lite/data/features/midi.js | JavaScript | mit | 747 |