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... | tbannister/moodle | calendar/amd/src/calendar_view.js | JavaScript | gpl-3.0 | 3,445 |
Ext.ns('Ext.ux.form');
Ext.ux.form.SearchField = Ext.extend(Ext.form.TwinTriggerField, {
// assume placed in grid panel toolbar
initComponent: function() {
Ext.ux.form.SearchField.superclass.initComponent.call(this);
this.on('specialkey', function(f, e) {
if (e.getKey() == e.ENTER) {
this.onT... | marcora/martview | ext.ux/form.searchfield.js | JavaScript | gpl-3.0 | 2,028 |
/*
config.js
gets the config from either the command line or the file logger.config or defaults
*/
var util = require('util');
var debuglog = util.debuglog('config');
var fs = require('fs');
var os = require('os');
// the defaults
var options = {
hostname:'0.0.0.0',
port:process.env.PORT || 50000,
databa... | whariki/logger | config.js | JavaScript | gpl-3.0 | 4,175 |
// ----------------------------------------------------------------------------
// This file is part of "Curuba Server".
//
// "Curuba Server" 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... | CurubaProject/CurubaServer | server/test/db.test.js | JavaScript | gpl-3.0 | 1,048 |
var searchData=
[
['i_5fexpr',['I_EXPR',['../namespacesage__circuit__analysis.html#aabc5e7c1a370cb2805023e6eef2ea933',1,'sage_circuit_analysis']]],
['i_5fid',['i_id',['../classsage__circuit__analysis_1_1SmallSignalLinearCircuit.html#acede0d2722f0ac9c236c6a0d4ba406c8',1,'sage_circuit_analysis::SmallSignalLinearCircu... | alessandro-bernardini/SAPICE | html/search/all_69.js | JavaScript | gpl-3.0 | 2,737 |
/**
* Rule the words! KKuTu Online
* Copyright (C) 2017 JJoriping(op@jjo.kr)
*
* 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 ... | JJoriping/KKuTu | Server/lib/Web/lib/in_admin.js | JavaScript | gpl-3.0 | 16,227 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2012 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/docume... | 09zwcbupt/undergrad_thesis | ext/poxdesk/qx/framework/source/class/qx/module/Animation.js | JavaScript | gpl-3.0 | 8,231 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/d... | 09zwcbupt/undergrad_thesis | ext/poxdesk/qx/application/demobrowser/source/class/demobrowser/demo/test/Destructor.js | JavaScript | gpl-3.0 | 2,762 |
define(["require", "exports"], function (require, exports) {
"use strict";
var VehicleMovementState;
(function (VehicleMovementState) {
VehicleMovementState[VehicleMovementState["accelerating"] = 0] = "accelerating";
VehicleMovementState[VehicleMovementState["decelerating"] = 1] = "decelerat... | nickhodge/simubus | interfaces.js | JavaScript | gpl-3.0 | 1,233 |
$(document).ready(function() {
$('.flexslider').flexslider();
$(':radio.readmsg').change(function(){
$.get("readmsg.php", {checked: $(this).val(), article: $(this).parent().attr('action')});
});
});
| wf3equipe1/portfolio | js/main.js | JavaScript | gpl-3.0 | 220 |
/**
The walletConnector
@class walletConnector
@constructor
*/
/**
Contains all wallet contracts
@property contracts
*/
contracts = {};
/**
Contains all collection observers
@property collectionObservers
*/
collectionObservers = [];
/**
Config for the ethereum connector
@property config
*/
ethereumConfig = {
/... | ethereum/meteor-dapp-wallet | app/client/lib/ethereum/walletConnector.js | JavaScript | gpl-3.0 | 4,008 |
goog.provide('bitex.app.BlinkTrade');
goog.provide('bitex.app.blink_trade');
goog.require('goog.structs.Map');
goog.require('goog.structs.Set');
goog.require('bitex.util');
goog.require('bitex.api.BitEx');
goog.require('goog.soy');
goog.require('bitex.templates');
goog.require('bitex.ui.WithdrawRequestDataEntry.temp... | blinktrade/frontend | jsdev/bitex/app/blinktrade.js | JavaScript | gpl-3.0 | 230,791 |
/**
* @module inout-container
*/
/**
* Container with left inputs and right outputs
* @class InOutContainer
* @extends Container
* @constructor
* @param {Object} options
* @param {Layer} layer
*/
Y.InOutContainer = Y.Base.create("inout-container", Y.Container, [], {
/**
* @method renderUI
*/
r... | PeterRyder/Chordial | res/wireit/src/inout-container/js/inout-container.js | JavaScript | gpl-3.0 | 2,475 |
'use strict';
const O = require('ose')(module);
var Readline = require('readline');
/** Doc {{{1
* @module ose
*/
/**
* @caption CLI interface module
*
* @readme
* This module provides a CLI interface module for OSE Node.js
* instances. Commands can be entered to readline interface or run as
* a script from... | OpenSmartEnvironment/ose | lib/cli.js | JavaScript | gpl-3.0 | 7,850 |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'print', 'bn', {
toolbar: 'প্রিন্ট করি'
} );
| ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/plugins/print/lang/bn.js | JavaScript | gpl-3.0 | 255 |
/* bender-tags: clipboard,pastefromword */
/* jshint ignore:start */
/* bender-ckeditor-plugins: pastefromword,ajax,basicstyles,bidi,font,link,toolbar,colorbutton,image */
/* bender-ckeditor-plugins: list,liststyle,sourcearea,format,justify,table,tableresize,tabletools,indent,indentblock,div,dialog */
/* jshint ignore:... | ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/tests/plugins/pastefromword/generated/new.js | JavaScript | gpl-3.0 | 907 |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { requestAllArticles, updateForm, deleteArticle, searchArticles, setCurrentArticle } from '../../actions/article';
import { getUserProfile } from '../../actions/user'
import { requestMaker... | Del7a/vehicle-finder | client/vehicle-finder-spa/src/containers/article/all-articles.js | JavaScript | gpl-3.0 | 3,017 |
export {default, PasswordForgetForm, PasswordForgetLink} from './passwordForget';
| b1oki/b1oki.github.io | src/components/PasswordForget/index.js | JavaScript | gpl-3.0 | 82 |
/**
* jQuery info bubble plugin
* Copyright (C) 2012 Bertrand CHEVRIER, KrampStudio
*
* 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 ... | krampstudio/jQueryInfoBubble | src/jquery.infobubble.js | JavaScript | gpl-3.0 | 8,742 |
/* globals google*/
/**
* google map initialization
*/
export function initMap(mapBox) {
var myLatlng = new google.maps.LatLng(41.674, -73.945);
var map = new google.maps.Map(
mapBox, {
zoom: 12,
center: myLatlng,
styles: [
{
'fe... | nucknine/portfolio | portfolio-page/source/js/google-map.js | JavaScript | gpl-3.0 | 3,646 |
import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Coming soon!</h1>
<p>This page is still being built</p>
</div>
);
}
| LearningLocker/learninglocker | ui/src/components/NotFound/index.js | JavaScript | gpl-3.0 | 198 |
$("#main").tabs({
fit:true,
border:false,
});
$("#sideNav").accordion({
fit:true,
border:false,
});
$(".treeNav").tree({
onClick: function(node){ // node是指树节点, node.text是节点文本内容
var nodeContent = node.text;
if($("#main").tabs('exists', nodeContent)){
$("#main").tabs('close', nodeContent)
... | xiaokunji/study_26 | ccs/src/main/webapp/js/manage.js | JavaScript | gpl-3.0 | 2,005 |
/* jshint node:true */
/* globals module */
module.exports = {
files: [
"client/*.js",
"gruntfile.js",
"grunt_tasks/*.js",
"test/unit/*.js"
],
options: {
jshintrc: true
}
}; | rnicholus/frame-grab.js | grunt_tasks/jshint.js | JavaScript | gpl-3.0 | 229 |
// 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... | sdc/moodle | lib/editor/atto/plugins/planetestream/yui/src/button/js/button.js | JavaScript | gpl-3.0 | 4,581 |
const institutions = require('./api/institution');
const motionTypes = require('./api/motion-type');
const persons = require('./api/person');
const teams = require('./api/team');
const tournaments = require('./api/tournament');
const users = require('./api/user');
const auth = require('./auth');
const signedUrl = requi... | bitorko/server | routes.js | JavaScript | gpl-3.0 | 853 |
window.onload = function() {
(function($){
})(jQuery);
}
document.addEventListener("DOMContentLoaded", function(event) {
function is_touch_device() {
return (('ontouchstart' in window)
|| (navigator.MaxTouchPoints > 0)
|| (navigator.msMaxTouchPoints > 0));
}
var pHtml = document... | laurentiudanu/laurentiudanu.github.io | blog/js/functions.js | JavaScript | gpl-3.0 | 497 |
import { connect } from 'react-redux'
import MaterialType from './presenter'
import { setSearchOption } from 'actions/advancedSearch'
const mapStateToProps = (state) => {
return {
...state,
}
}
const mapDispatchToProps = (dispatch) => {
return {
onChange: (e) => {
dispatch(setSearchOption(e.target... | ndlib/usurper | src/components/Layout/SearchDrawer/AdvancedSearch/MaterialType/index.js | JavaScript | gpl-3.0 | 437 |
var express = require("express");
var db = require("../db");
var hash = require("password-hash");
// Creating a user
exports.create = function(data, cb) {
// Needed variables
var username = data.username;
var name = data.name;
var password = hash.generate(data.password);
db(function(perr, conn) {
if(perr) {
... | Sebskyo/michan | models/user.js | JavaScript | gpl-3.0 | 2,749 |
var
argv = process.argv,
args = {};
argv.map(function(arg, i) {
var m = null;
if (i < 2) return;
if (m = arg.match(/--([^=]*)(?:=(.*))?/)) {
if (m[2]) {
args[m[1]] = m[2];
} else {
args[m[1]] = true;
}
}
});
if (args.config) {
(functio... | AgoraTech/diasp | samples/server/args.js | JavaScript | gpl-3.0 | 531 |
define(
"dojo/cldr/nls/zh/currency", //begin v1.x content
{
"HKD_displayName": "港元",
"CNY_displayName": "人民币",
"JPY_displayName": "日元",
"JPY_symbol": "JP¥",
"USD_displayName": "美元",
"CAD_symbol": "CA$",
"GBP_displayName": "英镑",
"CHF_displayName": "瑞士法郎",
"CNY_symbol": "¥",
"EUR_displayName": "欧元",
"GBP_symbo... | ustegrew/ustegrew.github.io | courses/it001/lib/dojo/dojo/cldr/nls/zh/currency.js.uncompressed.js | JavaScript | gpl-3.0 | 573 |
var is_object = (obj) => Object.prototype.toString.call(obj) == '[object Object]';
var is_string = (obj) => Object.prototype.toString.call(obj) == '[object String]';
var is_array = (obj) => Object.prototype.toString.call(obj) == '[object Array]';
module.exports = {
is_array: is_array,
is_object: is_object,
... | rails-to-cosmos/wpp | components/utils/TypeHints.js | JavaScript | gpl-3.0 | 345 |
/*HM_ScriptDOM.js
* by Peter Belesis. v4.0.7 010323
* Copyright (c) 2001 Peter Belesis. All Rights Reserved.
* Originally published and documented at http://www.dhtmlab.com/
* You may use this code on a public Web site only if this entire
* copyright notice appears unchanged and you publicly display
* a link to h... | egonet/egonet | lib/config/HM_ScriptDOM.js | JavaScript | gpl-3.0 | 27,468 |
/*
* ATLauncher CLI - https://github.com/ATLauncher/ATLauncher-CLI
* Copyright (C) 2016 ATLauncher
*
* 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
* ... | ATLauncher/ATLauncher-CLI | inc/classes/minecraftVersion.js | JavaScript | gpl-3.0 | 974 |
/*
* Copyright (C) 2021 Inera AB (http://www.inera.se)
*
* This file is part of sklintyg (https://github.com/sklintyg).
*
* sklintyg 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 t... | sklintyg/webcert | test/webcertTestTools/pages/intyg/skv/skv.base.utkast.page.js | JavaScript | gpl-3.0 | 1,286 |
export * as archiveActions from './archival'
export * as collectionActions from './collections'
export * as crawlActions from './heritrix'
export * as serviceActions from './services'
export * as notificationActions from './notification-actions'
export changeLocation from './changeLocation'
| N0taN3rd/wail | wail-ui/actions/index.js | JavaScript | gpl-3.0 | 292 |
function PlatformBuilder(){};
PlatformBuilder.debug = 0;
var builder = null
onmessage = function(e){
if ( e.data.msg === "start" ) {
if (PlatformBuilder.debug>2)
console.log("Builder id " + e.data.id + " recieved start message");
builder = new PlatformBuilder.Builder(e.data.world,e.data.origin,e.data.... | davidgundry/PlatformBuilder | builder.js | JavaScript | gpl-3.0 | 13,501 |
/* -*- mode: espresso; espresso-indent-level: 2; indent-tabs-mode: nil -*- */
/* vim: set softtabstop=2 shiftwidth=2 tabstop=2 expandtab: */
/* global
CATMAID,
project,
requestQueue,
SkeletonAnnotations,
userprofile,
WindowMaker
*/
(function(CATMAID) {
"use strict";
var SettingsWidget = function() {}... | dwitvliet/CATMAID | django/applications/catmaid/static/js/widgets/settings.js | JavaScript | gpl-3.0 | 38,825 |
/**
* 完美运动模块
*/
var startMove = function() {
/**
* 缓冲运动
* @param {HTMLElement} element 运动对象
* @param {JSON} json 属性:目标值
* @property {String} attr 属性值
* @config {Number} target 目标值
* @param {function} func 可选,回调函数,链式动画。
*/
function ease(element, js... | zero1898/fe-learn | snippets/startMove.js | JavaScript | gpl-3.0 | 5,460 |
const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow () {
mainWindow =... | antonio-fasolato/NJsonStroll | main.js | JavaScript | gpl-3.0 | 791 |
dojo.provide("dojox.gfx._base");
// candidates for dojox.style (work on VML and SVG nodes)
dojox.gfx._hasClass = function(/*HTMLElement*/node, /*String*/classStr){
// summary:
// Returns whether or not the specified classes are a portion of the
// class list currently applied to the node.
// return (new RegExp(... | NESCent/plhdb | WebRoot/js/dojox/gfx/_base.js | JavaScript | gpl-3.0 | 10,468 |
var classEventReceiver =
[
[ "SMouseState", "da/d77/structEventReceiver_1_1SMouseState.html", "da/d77/structEventReceiver_1_1SMouseState" ],
[ "EventReceiver", "df/d64/classEventReceiver.html#a165e903d01e26e4df68d76410bc0c04a", null ],
[ "GetJoystickState", "df/d64/classEventReceiver.html#a6c8f933acabf1bfd5... | MissValeska/Open-Horizons | Doc/html/df/d64/classEventReceiver.js | JavaScript | gpl-3.0 | 924 |
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Faroese language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the di... | joyofsrc/src | resources/ckeditor/lang/fo.js | JavaScript | gpl-3.0 | 3,437 |
var canvasImgOrigin = document.getElementById('canvas1');
var canvasGenetic = document.getElementById('canvas2');
var ctxOrigin = canvas1.getContext('2d');
var ctx = canvas2.getContext('2d');
var TOTAL_SQUARES = 500;
var IMAGE_WIDTH = 400;
var IMAGE_HEIGHT = 400;
var SQUARE_MAX_SIZE = 40;
var img = new Image();
var gen... | lkdjiin/picture_genetic_algorithm | js/picture_hill_climbing.js | JavaScript | gpl-3.0 | 3,847 |
$(function () {
'use strict';
var test = [
{
title: 'What is JavaScript?',
points: 10,
answers: [{
answer: 'Hypertext Markup Language',
right: false
},
{
answer: 'Objective ... | AiJD/labs | JS/lab17-18/src/js/script1.js | JavaScript | gpl-3.0 | 1,555 |
/**
* Created by madofu@163.com.
*/
import React from 'react';
import SkyLight from 'react-skylight';
import './header.less';
import WordModal from '../modal/WordModal';
import InputModal from '../modal/InputModal';
import ButtonModal from '../modal/ButtonModal';
import store from '../../../store';
import { addElemen... | sunlong/h5 | frontend/src/components/h5/header/Header.js | JavaScript | gpl-3.0 | 2,142 |
System.register(['angular2/core'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwn... | silvandco/angular2-tests | app/contact-form.component.js | JavaScript | gpl-3.0 | 2,025 |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/*
* Tests getAlternateDomains API.
*/
"use strict";
function run_test() {
removeMetadata();
useHttpServer();
run_next_test();
}
add_task(function* test_parseSubmissionURL() {
// Hide the defaul... | Yukarumya/Yukarum-Redfoxes | toolkit/components/search/tests/xpcshell/test_parseSubmissionURL.js | JavaScript | mpl-2.0 | 6,404 |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.fillStyle.parse.invalid.css-color-4-hsl-1
// Description:
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("");
var t_pass = t.done.bin... | DominoTree/servo | tests/wpt/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-1.worker.js | JavaScript | mpl-2.0 | 790 |
/* 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/. */
"use strict";
/* import-globals-from ../../debugger-controller.js */
const utils = require("../utils");
const {
... | Yukarumya/Yukarum-Redfoxes | devtools/client/debugger/content/views/sources-view.js | JavaScript | mpl-2.0 | 45,897 |
/* 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/. */
'use strict';
const { Cc, Ci } = require('chrome');
const { isPrivate } = require('sdk/private-browsing');
const {... | Yukarumya/Yukarum-Redfoxes | addon-sdk/source/test/addons/private-browsing-supported/test-windows.js | JavaScript | mpl-2.0 | 8,653 |
'use strict';
/*
HTTP Hawk Authentication Scheme
Copyright (c) 2012-2016, Eran Hammer <eran@hammer.io>
BSD Licensed
*/
// Declare namespace
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Sym... | kapy2010/treeherder | ui/vendor/hawk/browser-6.6.0.js | JavaScript | mpl-2.0 | 29,550 |
import { Legend } from 'normalized-styled-components';
import Baseline from '../baseline';
const StyledLegend = Legend.extend`
/* trick prettier */
font-family: ${props => props.theme.font.families};
font-weight: ${props => props.theme.font.weight.semibold};
`;
export default Baseline(StyledLegend);
| geek/joyent-portal | packages/ui-toolkit/src/form/legend.js | JavaScript | mpl-2.0 | 310 |
// flow-typed signature: 2a91ca8142740202da9a0ac7dbd1fa2c
// flow-typed version: <<STUB>>/eslint_v3.5.0/flow_v0.37.4
/**
* This is an autogenerated libdef stub for:
*
* 'eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* commu... | sk222sw/odin-react | flow-typed/npm/eslint_vx.x.x.js | JavaScript | mpl-2.0 | 63,246 |
// DO NOT EDIT! This test has been generated by /offscreen-canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.shadow.image.transparent.2
// Description:Shadows are not drawn for transparent parts of images
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-test... | UK992/servo | tests/wpt/web-platform-tests/offscreen-canvas/shadows/2d.shadow.image.transparent.2.worker.js | JavaScript | mpl-2.0 | 1,535 |
var sg = (function(mod) {
var dom = {};
if (!window) { // not in a browser => no dom
mod.dom = dom;
return mod;
}
dom.byId = function(elId) {
return document.getElementById(elId);
};
dom.find = function(query, el) {
if (typeof(el) !== 'undefined') {
... | filippo/sgjs2 | lib/dom.js | JavaScript | mpl-2.0 | 468 |
import React from 'react';
import {Link} from 'react-router';
import FetchError from './fetch-error';
import Loading from './loading';
import DateRange from './date-range';
function listStudies(studies) {
return (
<ul className="studies-list">
{studies.map(study => {
return listStudy(study);
... | spasovski/shield-studies-client | app/components/views/study-list.js | JavaScript | mpl-2.0 | 1,806 |
import { Mongo } from 'meteor/mongo';
export const launchEmails = new Mongo.Collection('launchemails');
| Blockrazor/blockrazor | imports/api/launchEmails/launchEmails.js | JavaScript | mpl-2.0 | 105 |
/**
* Copyright (C) 2015 Laverna project Authors.
*
* 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/.
*/
/*global define*/
define([
'underscore',
'jquery',
... | varod/laverna | app/scripts/app.js | JavaScript | mpl-2.0 | 1,936 |
var importedArgs = ['float_exprs.wast']; load(scriptdir + '../wast.js');
| Yukarumya/Yukarum-Redfoxes | js/src/jit-test/tests/wasm/spec/float_exprs.wast.js | JavaScript | mpl-2.0 | 73 |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Service | client/transports/xhr', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.owner.lookup('service:client/transports/xhr');
... | hashicorp/consul | ui/packages/consul-ui/tests/unit/services/client/transports/xhr-test.js | JavaScript | mpl-2.0 | 351 |
/*
* Copyright (c) 2016 José F. Maldonado
* 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/.
*/
// Load dependencies.
const fs = require('fs');
const path = require('pa... | jfmdev/simple-spellchecker | index.js | JavaScript | mpl-2.0 | 10,135 |
// -*- 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/.
"use strict";
// Tests OCSP Must Staple handling by connecting t... | Yukarumya/Yukarum-Redfoxes | security/manager/ssl/tests/unit/test_ocsp_must_staple.js | JavaScript | mpl-2.0 | 4,880 |
(function (window) {
var opts = {
width: 600,
height: 400,
topMargin: 50,
outerMargin: 15,
labelSpace: 0,
gapSpaceBars: 2,
baseColor: "#8cc63f",
highlightColor: "#539100",
dataRange: 29000,
titleLabel: "",
titleFont: "bold 10pt Arial,sans-serif",
showValues: true,
valuesFont: "bold 8pt Arial... | ivylabs/IvyDC | resources/components/IvyCharts/pyramidChart.js | JavaScript | mpl-2.0 | 7,042 |
// Copyright (c) 2014, Joyent, Inc. All rights reserved.
//
// 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/.
var Evaluator = require('..').Evaluator;
var errors = req... | joyent/node-aperture | test/evaluator.test.js | JavaScript | mpl-2.0 | 11,652 |
/* bender-tags: editor,unit,pastefromword */
/* bender-ckeditor-plugins: clipboard,pastefromword,ajax */
/* global assertPasteEvent */
( function() {
'use strict';
bender.editor = true;
var compat = bender.tools.compatHtml,
engineName = CKEDITOR.env.webkit ? 'webkit' :
CKEDITOR.env.ie ? 'ie' :
CKEDITOR.en... | bpilot/CKEditor-source | ckeditor-dev/tests/tickets/9330/1.js | JavaScript | mpl-2.0 | 839 |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
// Tests that asm.js AOT can be disabled and debugging of the asm.js code
// is working.
const {
setupTestRunner,
asm
} = require("devtools/client/debugger/new/integration-tests");
add_task(function*() {
... | tomrav/debugger.html | src/test/mochitest/browser_dbg-asm.js | JavaScript | mpl-2.0 | 367 |
Array.uniqueSort = function(a) {
a.sort();
for (var i = 1; i < a.length; i++){
if(a[i] === a[i-1]){
a.splice(i--, 1);
}
}
return a;
};
| mozilla/motown | lib/extensions/array.js | JavaScript | mpl-2.0 | 161 |
/* 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 { registerSuite } = intern.getInterface('object');
const assert = intern.getPlugin('chai').assert;
const os =... | mozilla/fxa-content-server | tests/server/flow-event.js | JavaScript | mpl-2.0 | 35,556 |
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
// This test verifies that install of extensions that require restart
// syncs between profiles.
EnableEngines(["addons"]);
var phases = {
"phase01": "profile1",
"phase02": "profile1",
"phase03": "profil... | Yukarumya/Yukarum-Redfoxes | services/sync/tests/tps/test_addon_nonrestartless_xpi.js | JavaScript | mpl-2.0 | 2,015 |
var express = require('express');
var router = express.Router();
var mongoose = require('mongoose');
var users = require('../controllers/user');
var md_auth = require('../middlewares/authenticated')
//GET REQUESTS
//Get all the users
router.get('/all', md_auth.ensureAuth, users.listAllUsers);
//Get a user by email
//... | EAGrup4/OpinaliaServer | routes/user.js | JavaScript | agpl-3.0 | 1,351 |
/*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... | Lokiedu/libertysoil-site | src/actions/posts.js | JavaScript | agpl-3.0 | 3,500 |
/**
* Base Javascript class for the Calendar plugin
*
* @author Lazlo Westerhof <hello@lazlo.me>
* @author Thomas Bruederli <bruederli@kolabsys.com>
*
* @licstart The following is the entire license notice for the
* JavaScript code in this page.
*
* Copyright (C) 2010, Lazlo Westerhof <hello@lazlo.me>
* Copy... | messagerie-melanie2/roundcube_calendar | calendar_base.js | JavaScript | agpl-3.0 | 7,200 |
// ResponsiveWaterfall.js
// Provides 'pinterest'-style layout of boxes with varying heights
const Waterfall = function(opts) {
// define property
let minBoxWidth;
Object.defineProperty(this, 'minBoxWidth', {
get() {
return minBoxWidth;
},
set(value) {
if (value < 100) value = 100;
... | uclaradio/uclaradio | client/react/frontpage/components/misc/ResponsiveWaterfall.js | JavaScript | agpl-3.0 | 3,740 |
import {getAuthorizationHeader} from '../../Token.js';
export class GalleryCreateController {
/**
* @ngInject
* @param $scope
* @param $modal
* @param {GalleryService} GalleryService
* @param {DataTable} DataTable
* @param {User} User
* @param {Notifications} Notifications
*... | InQool/IQ-Discovery | office/office-web/src/main/app/scripts/Controllers/Gallery/GalleryCreateController.js | JavaScript | agpl-3.0 | 4,790 |
jQuery(document).ready(function(){
// porque el google chrome guarda los checkbox pero pierde el campo i3mostrarcampos
if( false && $('[name=i3mostrarcampos]').length ) i3rellenamostrarcampos( $('[name=i3mostrarcampos]').get(0) );
});
function onchangeVisualizar(o){
var f = o.form;
var v = f.Visualiza... | Coolbleiben/gruposmaic | i3_1206/idbe3/idbe3_form_consultar.js | JavaScript | agpl-3.0 | 13,933 |
/*
***** BEGIN LICENSE BLOCK *****
Copyright © 2009 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
http://zotero.org
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
... | gracile-fr/zotero | chrome/content/zotero/xpcom/sync/syncRunner.js | JavaScript | agpl-3.0 | 40,991 |
/*
Copyright 2012, Nabil SEFRIOUI
This file is part of Skyproc.
Skyproc is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of
the License, or any later version.
Skyproc is distributed in ... | skygeek/skyproc | wapp/js/views/reports/Dashboard.js | JavaScript | agpl-3.0 | 34,526 |
define(function(require) {
var Backbone = require('canvas_packages/backbone');
var pickAndNormalize = require('./common/pick_and_normalize');
var K = require('../constants');
var _ = require('lodash');
var wrap = require('../util/array_wrap');
var round = require('../util/round');
var I18n = require('i18n... | moh-alsheikh/canvas-lms | client_apps/canvas_quiz_statistics/src/js/models/quiz_statistics.js | JavaScript | agpl-3.0 | 2,170 |
var searchData=
[
['paintto',['paintTo',['../classGUIColorScalePanel.xhtml#aaf6408cc09932a82afc7b2c233ec64c8',1,'GUIColorScalePanel']]],
['parsearguments',['parseArguments',['../classCsvToSdConverter.xhtml#adae10f022f4f05195c2a4b0a620d4645',1,'CsvToSdConverter::parseArguments()'],['../classTsdMerger.xhtml#a28edc421... | vroland/SimpleAnalyzer | doc/html/search/functions_70.js | JavaScript | agpl-3.0 | 2,320 |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | asvs-details', function (hooks) {
setupRenderingTest(hooks);
test('it should render asvs code and title'... | appknox/irene | tests/integration/components/asvs-details-test.js | JavaScript | agpl-3.0 | 632 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('autosave', 'zh', {
dateFormat: 'LLL',
autoSaveMessage: '自动保存',
savedContentLoaded: '已载入本文于 {0} 自动保存的版本',
loadSavedContent: '... | JING-TIME/ustc-course | app/static/ckeditor/plugins/autosave/lang/zh-cn.js | JavaScript | agpl-3.0 | 749 |
'use strict';
const debug = require('debug')('shiba:oxr');
const request = require('co-request');
const API = 'http://openexchangerates.org/api/';
function* getRates(opts, ep) {
debug('Fetching openexchangerates');
let appId = opts.appId;
if (!appId)
throw new Error('OpenExchangeRate app id needed')... | moneypot/shiba | Util/OpenExchangeRates.js | JavaScript | agpl-3.0 | 790 |
/* Copyright (c) 2015 - 2018 CoNWeT Lab., Universidad Politécnica de Madrid
*
* This file belongs to the business-ecosystem-logic-proxy of the
* Business API Ecosystem
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publi... | FIWARE-TMForum/business-ecosystem-logic-proxy | public/resources/core/js/services/product-offering.service.js | JavaScript | agpl-3.0 | 64,503 |
/*
* Copyright (c) 2018. Wise Wild Web
*
* This File is part of Caipi and under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
* Full license at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
*
* @author : Nathanael Braun
* @contact : caipilabs@gmail.com... | CaipiLabs/caipi | App/services.js | JavaScript | agpl-3.0 | 434 |
import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { formatNumber, formatPercentage } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import GlobalCool... | FaideWW/WoWAnalyzer | src/parser/hunter/beastmastery/modules/talents/VenomousBite.js | JavaScript | agpl-3.0 | 4,853 |
/*!
* Extensible 1.6.0-rc.1
* Copyright(c) 2010-2013 Extensible, LLC
* licensing@ext.ensible.com
* http://ext.ensible.com
*/
/**
* List compiled by KillerNay on the extjs.com forums.
* Thank you KillerNay!
*
* Thailand Translations
*/
Ext.onReady(function() {
var cm = Ext.ClassManager,
exists = E... | annndrey/npui-unik | netprofile_core/netprofile_core/static/extensible/examples/calendar/ext-locales/ext-lang-th.js | JavaScript | agpl-3.0 | 8,709 |
import React from 'react';
import { Input, Button, Container, Icon, NgIf, Loader } from '../../components/';
import { Config, Admin } from '../../model/';
import { notify, FormObjToJSON, alert, prompt } from '../../helpers';
import { bcrypt_password } from '../../helpers/bcrypt';
import ReactCSSTransitionGroup from 'r... | mickael-kerjean/nuage | client/pages/adminpage/setup.js | JavaScript | agpl-3.0 | 16,188 |
import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from 'common/Wrapper';
import connectParser from 'common/connectParser';
class ItemHealingDone extends React.PureComponent {
static propTypes = {
amount: PropTypes.number.isRequired,
approximate: PropTypes.bool,
greaterThan:... | hasseboulen/WoWAnalyzer | src/Main/ItemHealingDone.js | JavaScript | agpl-3.0 | 1,011 |
var Root = module.exports = function() {
if (!this.lastId) this.lastId = 0;
if (!this.currentId) this.currentId = 0;
}
Root.type = 'opr';
Root.defineSchema = function(schema) {
schema.version(1).define(function(fields) {
fields
.add('jobs', {type: 'Dictionary', short: 'j'})
.add('lastId', {type:... | slick-io/slick | lib/models/operations/root.js | JavaScript | agpl-3.0 | 408 |
'use strict';
angular.module('schedules').factory('Section', ['DS',
function (DS) {
var Section = DS.defineResource({
name: 'section',
baseUrl: 'http://107.170.253.85:1337/',
relations: {
// hasOne: {
// professor: {
// localField: 'professor',
... | timkendall/schedules | app/scripts/services/section.js | JavaScript | agpl-3.0 | 673 |
/*
* Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of fiware-iotagent-lib
*
* fiware-iotagent-lib is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either versio... | caiothomas/iotagent-node-lib | test/unit/provisioning/device-provisioning-api_test.js | JavaScript | agpl-3.0 | 28,955 |
define(["app", "backbone", "backbone.marionette"], function (app, Backbone) {
"use strict";
var CountryView = Backbone.Marionette.ItemView.extend({
template: "#country-box-template",
initialize: function () {
this.listenTo(this.model, "change", this.render);
}
});
var BookView = Back... | OpenBookPrices/l2b-demo-app | public/js/views.js | JavaScript | agpl-3.0 | 1,416 |
if (!wfp.snippets) {
wfp.snippets = {};
}
wfp.snippets.select2 = {};
wfp.snippets.select2.getParameters = function(elem){
var options = {};
options.selector = ("#" + elem.attr("id") + ".select").replace(/\./g, "\\.");
options.inputId = ("#" + elem.attr("id")).replace(/\./g, "\\.");
options.width =... | joosth/xml-forms | web-app/js/snippets/basetype/select2.js | JavaScript | agpl-3.0 | 8,861 |
const ERR = require('async-stacktrace');
const express = require('express');
const router = express.Router();
const async = require('async');
const logger = require('../../lib/logger');
const error = require('../../prairielib/lib/error');
const sqldb = require('../../prairielib/lib/sql-db');
const sqlLoader = require(... | PrairieLearn/PrairieLearn | pages/instructorCourseAdminStaff/instructorCourseAdminStaff.js | JavaScript | agpl-3.0 | 14,731 |
define([
'react',
'plugins/analytics/react-bootstrap-table',
'i18n!analytics'
], function (React, ReactBootstrapTable, I18n) {
const { BootstrapTable, TableHeaderColumn } = ReactBootstrapTable;
const tableOptions = {
sizePerPage: 30,
sizePerPageList: []
};
return React.cre... | SwinburneOnline/canvas-analytics | app/jsx/components/GradesTable.js | JavaScript | agpl-3.0 | 3,440 |
(function() {
"use strict";
App.CheckAllNone = {
initialize: function() {
$("[data-check-all]").on("click", function(e) {
var target_name;
e.preventDefault();
e.stopPropagation();
target_name = $(this).data("check-all");
$("[name='" + target_name + "']").prop("check... | consul/consul | app/assets/javascripts/check_all_none.js | JavaScript | agpl-3.0 | 631 |
/**
* This file is part of Superdesk.
*
* Copyright 2013, 2014 Sourcefabric z.u. and contributors.
*
* For the full copyright and license information, please see the
* AUTHORS and LICENSE files distributed with this source code, or
* at https://www.sourcefabric.org/superdesk/license
*/
(function() {
'use s... | liveblog/superdesk | client/app/scripts/superdesk-templates/templates.js | JavaScript | agpl-3.0 | 12,243 |
import { hooks as authHooks } from 'feathers-authentication'
const { authenticate } = authHooks
module.exports = function () {
const app = this
app.service('profiles').hooks(hooks)
}
const hooks = {
before: {
all: authenticate('jwt'),
}
}
| root-systems/cobuy | profiles/services/profiles.js | JavaScript | agpl-3.0 | 253 |
define(function(require) {
'use strict';
var PIXI = require('pixi');
var Rectangle = require('common/math/rectangle');
var Vector2 = require('common/math/vector2');
var EnergySourceView = require('views/energy-source');
var BurnerView = require('views/element/burner');
var Burner... | Connexions/simulations | energy-forms-and-changes/src/js/views/energy-source/teapot.js | JavaScript | agpl-3.0 | 12,430 |
/* @flow */
/*:: import type { Scenario } from '..' */
module.exports = ({
side: 'local',
init: [
{ ino: 1, path: 'parent/' },
{ ino: 2, path: 'parent/subdir/' },
{ ino: 3, path: 'parent/subdir/subsubdir/' }
],
actions: [
{ type: 'mv', src: 'parent', dst: 'parent-2' },
{ type: 'wait', ms: ... | cozy-labs/cozy-desktop | test/scenarios/rename_subdir_after_parent/scenario.js | JavaScript | agpl-3.0 | 682 |