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 |
|---|---|---|---|---|---|
module.exports = function(grunt) {
var buildPlatforms = parseBuildPlatforms(grunt.option('platforms'));
grunt.initConfig({
nodewebkit: {
options: {
version: '0.8.6',
build_dir: './build', // Where the build version of my node-webkit app is saved
mac: buildPlatforms.mac,
wi... | thermatk/thermorrent | Gruntfile.js | JavaScript | gpl-3.0 | 1,555 |
// Global variables
var menuVisible = false;
var feedsToggled;
var contentAreaVisible = false;
var searchBoxContent;
var screen;
var screenMachine = {
THEGRID : 0,
MYFEEDS : 1,
READMORE : 2,
CONTENTAREA : 3
};
var googleReaderMode = false;
var mostRecentSearchQuery;
var indexesToBeRemoved = [];
var addQueue = [];
... | rodowi/glimpse | app/js/results.js | JavaScript | gpl-3.0 | 36,836 |
module.exports = {
'db' : {
user: 'damiens',
database: 'cv',
password: 'SrEe.03pw',
host: 'localhost',
port: 5432,
max: 10,
idleTimeoutMillis: 30000,
},
'secret': 'itssecret'
}
| damiens-robert/web-curriculum-vitae | server/config.js | JavaScript | gpl-3.0 | 234 |
require('dotenv-extended').load();
var builder = require('botbuilder');
var restify = require('restify');
var connector = new builder.ChatConnector({appId: process.env.MICROSOFT_APP_ID, appPassword: process.env.MICROSOFT_APP_PASSWORD});
var bot = new builder.UniversalBot(connector);
bot.dialog('/... | gjuljo/botworkshop | step4b-privatedata.js | JavaScript | gpl-3.0 | 1,155 |
"use strict";
DEBUG = false; // Turn off console logs
describe("cd-login-panel", function() {
var $location, $rootScope, $compile, $q, $httpBackend, CONSTANTS, OAuthToken, AuthService;
var $scope;
var compiledElement;
function mockAuthService() {}
function mockAlertModalService() {}
functi... | si3792/icough | client/app/directives/login-panel/login-panel.spec.js | JavaScript | gpl-3.0 | 10,319 |
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2017 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
*
* EspoCRM is free software: you can redistribute it... | alasdaircr/espocrm | client/src/views/preferences/record/edit.js | JavaScript | gpl-3.0 | 6,496 |
export Job from './Job';
| dunika/job-admin | src/client/modules/jobs/components/index.js | JavaScript | gpl-3.0 | 25 |
var a00232 =
[
[ "FIndicesHandle", "a00232.html#a8099e2770080ff96ad00b8fb52a30247", null ],
[ "FPLengthsHandle", "a00232.html#a060c1b5ebc482f948b70ac38262cca97", null ],
[ "FPTypesHandle", "a00232.html#ade8c7688fe570e3affc1d3edd3f1eace", null ],
[ "GeoIndices", "a00232.html#a45e9e4c28fd201448cdd6b18813e... | rudy-wang/ros-3d_camera | libopenmesh/build/OpenMesh-3.2/Documentation/a00232.js | JavaScript | gpl-3.0 | 3,393 |
/**
*
* _____ ___ _____ _ _ _ ___ ___ _ _ ____
* |_ _|_ _|_ _|/ \ | \ | |_ _/ _ \| | | / ___|
* | | | | | | / _ \ | \| || | | | | | | \___ \
* | | | | | |/ ___ \| |\ || | |_| | |_| |___) |
* |_| |___| |_/_/ \_|_| \_|___\___/ \___/|____/
*
*
* ROUTE FILE - settings route
... | ShaPOC/Titanious | src/application/routes/settings.js | JavaScript | gpl-3.0 | 1,006 |
var searchData=
[
['predictor_5ftype',['predictor_type',['../a00021.html#af822c41719a3d892cfb9b618e63b80e3',1,'gaml::linear::lars::Learner::predictor_type()'],['../a00022.html#afcaa378202cf3ffc55da765bfa767da5',1,'gaml::linear::lasso::Learner::predictor_type()']]]
];
| HerveFrezza-Buet/gaml | doc/gaml-linear/html/search/typedefs_2.js | JavaScript | gpl-3.0 | 270 |
const nodeExternals = require('webpack-node-externals');
module.exports = {
target: 'node',
module: {
loaders: [{
test: /\.js/,
loader: 'babel',
query: {
presets: ['es2015', 'react', 'stage-0', 'stage-1', 'stage-2', 'stage-3'],
plugins:... | Pirolf/nekochan | config/webpack.test.config.js | JavaScript | gpl-3.0 | 544 |
// Copyright 2016-2020, University of Colorado Boulder
/**
* Ball model for lab tab in Plinko Probability
* This ball inherits from the common ball model
* This sets the vertical position in which the ball should disappear
*
* @author Martin Veillette (Berea College)
*/
import Ball from '../../common/model/Ball... | phetsims/plinko-probability | js/lab/model/LabBall.js | JavaScript | gpl-3.0 | 1,236 |
/* globals $ */
(function() {
'use strict';
angular
.module('weatheropendataApp')
.directive('passwordStrengthBar', passwordStrengthBar);
function passwordStrengthBar () {
var directive = {
replace: true,
restrict: 'E',
template: '<div id="streng... | hackathinho/open-clean-energy | backend-weather/src/main/webapp/app/account/password/password-strength-bar.directive.js | JavaScript | gpl-3.0 | 3,355 |
Ext.define('Healthsurvey.view.mobileview.login.LoginController', {
extend : 'Ext.app.ViewController',
alias : 'controller.login',
views : [ "Login" ],
require : [ 'view.main.Main' ],
onSpecialKey : function(field, e) {
if (e.getKey() === e.ENTER) {
this.doLogin();
}
},
onLoginClick : function() {
this.d... | applifireAlgo/appApplifire | healthsurvey/src/main/webapp/app/view/mobileview/login/LoginController.js | JavaScript | gpl-3.0 | 5,129 |
'use strict';
angular.module('kyss').factory('Html_summary',
['$window', '$q', 'Brain',
function($window, $q, Brain) {
var Html_summary = {};
var Dataset = Brain.Dataset;
Html_summary.Write = function() {
var Dataset = Brain.Dataset;
var nodes = [];
var new_node;
new_node = document.createElement('div... | KYSSelectron/KYSSelectron.github.io | source code/scripts/services/Html_summary.js | JavaScript | gpl-3.0 | 14,866 |
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery("table.adminTable").tablesorter({
dateFormat: 'dd.mm.yyyy',
textSorter: sortBy,
headers: {
4: {
sorter: 'datetime'
},
5: {
sorter: false
},
6: {
... | bluebottle/is.idega.idegaweb.block.pheidippides | resources/javascript/transferPaymentList.js | JavaScript | gpl-3.0 | 1,299 |
var searchData=
[
['msg_5ferro_5fd',['MSG_ERRO_D',['../class_a_aut.html#a5916af8f155b6d0157ac2c4383e5c4c0',1,'AAut']]],
['msg_5ffinalizar',['MSG_FINALIZAR',['../class_a_aut.html#a8567a433ee5567356e4e4d10a1391662',1,'AAut']]],
['msg_5fler_5fape',['MSG_LER_APE',['../class_a_aut.html#ad7c6a9ef81a5f96c6fd4f2d58a980e9... | rodrigofegui/UnB | 2017.2/Técnicas de Programação 1/Trabalho Disciplina/Documentação/Codificação/html/search/variables_6.js | JavaScript | gpl-3.0 | 444 |
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2022 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* EspoCRM is free software: you can redistribute... | espocrm/espocrm | client/src/views/global-search/panel.js | JavaScript | gpl-3.0 | 5,048 |
var OAuth2 = require("./oauth2")
, util = require('util')
, url = require("url")
function Foursquare(options) {
this.code.query = {
client_id: options.id,
response_type: 'code',
scope: options.scope || []
}
this.token.query = {
client_id: options.id,
client_secret: options.secret,
gr... | pwldp/rodzice-na-czasie-pl | node_modules/authom/lib/services/foursquare.js | JavaScript | gpl-3.0 | 938 |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | BogusCurry/BlocksCAD | blockly/blocks/lists.js | JavaScript | gpl-3.0 | 22,923 |
// IEprompt Callback function to handle choose random prime request
function promptCallback(val) {
if ( val != null ) {
var size = val.trim();
if ( size == "" ) alert("Must enter nonnegative integral value");
else if ( isNumeric(size) ) {
if (size > 1400) alert("Size too large. Please choose one <= 140... | syncom/libg2hec | demo/promptcb.js | JavaScript | gpl-3.0 | 1,159 |
/**
* Created by JetBrains PhpStorm.
* User: Ernesto J. Rodriguez (Certun)
* File:
* Date: 2/18/12
* Time: 11:11 PM
*/
Ext.define('App.store.patientfile.Encounter', {
extend: 'Ext.data.Store',
requires: ['App.model.patientfile.Encounter'],
pageSize: 10,
model : 'App.model.patientfile.Encounter'
}); | MitosEHR/MitosEHR-Official | app/store/patientfile/Encounter.js | JavaScript | gpl-3.0 | 311 |
/*
Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n - 1 elements by 1.
Example:
Input:
[1,2,3]
Output:
3
Explanation:
Only three moves are needed (remember each move increments two elements):
[1,2,3] => [2,3,3] ... | matrixki/LeetCode | 453. Minimum Moves to Equal Array Elements.js | JavaScript | gpl-3.0 | 848 |
import { deleteRemoteIdentity as deleteRemoteIdentityBase, removeFromCollection } from '../../../store/modules/remote-identity';
import { tryCatchAxiosAction } from '../../../services/api-client';
export const deleteIdentity = ({ identity }) => async (dispatch) => {
await tryCatchAxiosAction(() => dispatch(deleteRem... | CaliOpen/CaliOpen | src/frontend/web_application/src/modules/remoteIdentity/actions/deleteIdentity.js | JavaScript | gpl-3.0 | 444 |
/* @flow */
import * as assert from "assert"
import * as Library from "../live/library"
import {readFileSync} from 'fs'
describe('library', () => {
var mock_library_json = readFileSync( "../../../test-data/mea-katalogo-2.json", 'utf-8')
var mock_catalogue = Library.Catalogue(mock_library_json)
describe("filtering... | tmcl/katalogo | frontend/src/test/grid.js | JavaScript | gpl-3.0 | 2,168 |
import url from "url";
import packageJson from "/package.json";
import { merge, uniqWith } from "lodash";
import { Meteor } from "meteor/meteor";
import { EJSON } from "meteor/ejson";
import { Jobs, Packages, Shops } from "/lib/collections";
import { Hooks, Logger } from "/server/api";
import ProcessJobs from "/server/... | curranabell/Natural-Medicine-Pharmacy | server/api/core/core.js | JavaScript | gpl-3.0 | 16,536 |
import { push } from 'connected-react-router';
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import NotFound from ... | lidarr/Lidarr | frontend/src/Album/Details/AlbumDetailsPageConnector.js | JavaScript | gpl-3.0 | 3,305 |
wash.response = {
error : null,
output : {
cwd : null,
prompt : 'wash>',
stdout : null,
},
};
| chrisallenlane/wash | lib/js/wash.response.js | JavaScript | gpl-3.0 | 134 |
var date_formatter = new google.visualization.DateFormat({pattern: 'dd/MM/yyyy HH:mm:ss'});
date_formatter.format(data, 0);
var options = {
title: 'CPU utilization percent',
colors: ['#3366cc'],
backgroundColor: {fill: 'transparent'},
height: 350,
fontName: 'Roboto',
titleTextStyle: {col... | GilGalaad/JCollectd | artifacts/templates/options_cpu.js | JavaScript | gpl-3.0 | 928 |
import React from 'react';
import { connect } from 'react-redux';
class App extends React.Component {
render() {
return (
<div className="app-wrapper">
{this.props.children}
</div>
);
}
};
export default connect()(App); | alayii/fishi | public/javascripts/containers/App.js | JavaScript | gpl-3.0 | 253 |
/* globals define, jQuery, module, require, angular, moment */
/* jslint vars:true */
/**
* @license angular-bootstrap-datetimepicker
* Copyright 2016 Knight Rider Consulting, Inc. http://www.knightrider.com
* License: MIT
*
* @author Dale "Ducky" Lotts
* @since 2013-Jul-8
*/
(function(root, fac... | andreafeccomandi/bibisco | bibisco/app/directives/datetimepicker/datetimepicker.js | JavaScript | gpl-3.0 | 24,172 |
export function setObject(key, value) {
localStorage.setItem(key, JSON.stringify(value));
}
export function getObject(key) {
const value = localStorage.getItem(key);
try {
return JSON.parse(value);
} catch (e) {
return {};
}
}
| bekicot/gsoc-prep-tasks | app/utils/storage.js | JavaScript | gpl-3.0 | 246 |
const jwt = require('jsonwebtoken');
const privateConfig = require('../config/private');
exports.create = (obj, time, cert) => {
cert = cert || privateConfig.jwt_cert;
return jwt.sign(obj, cert, {
algorithm: 'HS256',
expiresIn: time || '30m'
})
};
exports.verify = (token, cert, callback) => {
return n... | DremyGit/dremy-blog | api/common/jwt.js | JavaScript | gpl-3.0 | 639 |
import React from 'react'
import {
Text,
View
} from 'react-native'
import { ReadLoud, ManitouInfo } from './TextViews'
import { ChoiceFooter } from './Buttons'
export const ChoiceView = ({onMenu, statueHolder, onYes, onNo, text}) => {
return (
<View>
<ReadLoud text={text} />
<ChoiceFooter onYes=... | KtuluTeam/Ktulu | src/components/ChoiceView.js | JavaScript | gpl-3.0 | 388 |
describe('Math helper', () => {
const {roundTo} = require('../../../server/helpers/math_helper');
describe('#roundTo', () => {
it('rounds to 1 decimal point by default', () => {
expect(roundTo(1.36)).toBe(1.4);
});
it('rounds up', () => {
expect(roundTo(1.347, 2)).toBe(1.35);
});
i... | Pirolf/nekochan | spec/server/helpers/math_helper_spec.js | JavaScript | gpl-3.0 | 407 |
/**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... | telldus/telldus-live-mobile-v3 | js/App/Components/SensorDetails/SubViews/LineChartDetailed.js | JavaScript | gpl-3.0 | 11,387 |
var searchData=
[
['badaction',['BadAction',['../a00048.html#a5dba1c76f1f6ab8da5ca87c41ff15055',1,'rl::problem::cliff_walking::BadAction::BadAction()'],['../a00052.html#a37af932eccbe257498903bd0c571a813',1,'rl::problem::garnet::BadAction::BadAction()'],['../a00055.html#a79b8f3cbe98f885cfaa017124df58055',1,'rl::proble... | HerveFrezza-Buet/RLlib | html/search/functions_62.js | JavaScript | gpl-3.0 | 1,585 |
'use strict';
var db = require('../lib/db')();
exports.upsert = function (req, res) {
var sketch = req.param('sketch');
if (!sketch.name) { return res.json({success: false, error: 'missing params: `sketch.name`'}); }
db.sketches.upsert(sketch, function (err) {
if (err) {
res.json({success: false, e... | eburi/lumi-server | routes/sketches.js | JavaScript | gpl-3.0 | 1,715 |
/* globals describe, it */
const expect = require("chai").expect;
const Puzzle = require("../src/puzzle");
const PuzzleBuilder = require("../src/puzzle-builder");
describe("PuzzleBuilder", function() {
it("should return a 3x3 Puzzle with a diagonal block", function() {
const builder = new PuzzleBuild... | turnerhayes/xpuz | test/puzzle-builder.js | JavaScript | gpl-3.0 | 1,995 |
Bitrix 16.5 Business Demo = a9201326946301fc7d897e7470a54dbe
Bitrix 17.0.9 Business Demo = ae2b10f90669dc16e629ff8cd34d970a
| gohdan/DFC | known_files/hashes/bitrix/modules/main/install/js/main/core/core_uploader/queue.map.js | JavaScript | gpl-3.0 | 124 |
/*
*
* @licstart The following is the entire license notice for the
* JavaScript code in this page.
*
* Copyright (c) 2012-2017 RockStor, Inc. <http://rockstor.com>
* This file is part of RockStor.
*
* RockStor is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Pub... | schakrava/rockstor-core | src/rockstor/storageadmin/static/storageadmin/js/views/add_scheduled_task.js | JavaScript | gpl-3.0 | 13,638 |
var Promise = require('bluebird'),
r = require('rethinkdb'),
elasticsearch = require('elasticsearch'),
config = require('./config'),
bunyan = require('bunyan'),
stream = require('gelf-stream'),
discover = require('./lib/discover'),
helper = require('./lib/helper'),
log;
if (!!config.graylog) {
... | zllovesuki/dermail-api | Fulltext.js | JavaScript | gpl-3.0 | 6,539 |
(function () {
'use strict';
angular.module('risevision.editor.directives')
.directive('lastRevised', ['$filter',
function ($filter) {
return {
restrict: 'E',
scope: {
revisionStatusName: '=',
changeDate: '=',
changedBy: '='
},
... | Rise-Vision/rise-vision-app-launcher | web/scripts/editor/directives/dtv-last-revised.js | JavaScript | gpl-3.0 | 1,278 |
import path from 'path';
import { readdirSync } from 'fs';
import { ESLINT_RULE_MAPPING } from 'const';
describe('Eslint rules object', () => {
const files = readdirSync('src/rules/javascript').filter(
(fileName) => fileName !== 'index.js'
);
it.each(files)(
'%s rule module should have a matching rule ... | mozilla/addons-linter | tests/unit/rules/javascript/test.eslintRulesObject.js | JavaScript | mpl-2.0 | 948 |
initSidebarItems({"fn":[["_assert_send",""],["_assert_sync",""]],"macro":[["__hyper__deref!",""],["__hyper__tm!",""],["__hyper_generate_header_serialization!",""],["bench_header!",""],["header!",""],["test_header!",""]],"mod":[["buffer",""],["client","HTTP Client"],["error","Error and Result module."],["header","Header... | servo/doc.servo.org | hyper/sidebar-items.js | JavaScript | mpl-2.0 | 804 |
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { withStyles } from '@material-ui/core/styles'
import classNames from 'classnames'
import { ListItemText } from '@material-ui/core'
import ThemeTools from 'wbui/Themes/ThemeTools'
const styles = (theme) => ({
primaryText: {
... | wavebox/waveboxapp | classic/src/scenes/wbui/TooltipSectionListItemText.js | JavaScript | mpl-2.0 | 1,994 |
/**
This file is a part of the FuretUI project
Copyright (C) 2017 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
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/.
**/
import V... | jssuzanne/furet_ui | src/__tests__/fields/float.test.js | JavaScript | mpl-2.0 | 20,162 |
/*
* 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/.
*/
/*
* Copyright (c) 2014, Joyent, Inc.
*/
/*
* Portolan backend wrapper: "and me, the groove and my friends... | joyent/sdc-portolan | lib/backend/index.js | JavaScript | mpl-2.0 | 786 |
//Contact form validation
$.validator.setDefaults({
highlight: function(element) {
$(element).closest('.form-group').addClass('has-error');
},
unhighlight: function(element) {
$(element).closest('.form-group').removeClass('has-error');
},
errorElement: 'span',
errorClass: 'help-... | jasoderstrom/jasoderstrom.github.io | js/form.js | JavaScript | mpl-2.0 | 1,247 |
pref("general.useragent.locale", "is");
| MoonchildProductions/pale-moon-localization | is/browser/defaults/preferences/palemoon-l10n.js | JavaScript | mpl-2.0 | 42 |
module.exports={A:{A:{"1":"H D G E A B nB"},B:{"1":"C K f L N I J q"},C:{"1":"0 1 2 3 4 5 6 8 F O H D G E A B C K f L N I J P Q R S T U V W X Y Z a b c d e AB g h i j k l m n o p M r s t u v w x y z EB NB DB BB FB HB IB JB KB LB MB eB dB","2":"kB","4":"OB"},D:{"1":"0 1 2 3 4 5 6 8 F O H D G E A B C K f L N I J P Q R S ... | mdranger/mytest | node_modules/caniuse-lite/data/features/contenteditable.js | JavaScript | mpl-2.0 | 986 |
// DO NOT EDIT! This test has been generated by /offscreen-canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.fillStyle.parse.rgba-num-2
// Description:
// Note:<p class="notes">
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("");
var... | UK992/servo | tests/wpt/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-2.worker.js | JavaScript | mpl-2.0 | 737 |
import fs from 'fs';
import { oneLine } from 'common-tags';
import Linter from 'linter';
import * as constants from 'const';
import * as messages from 'messages';
import ManifestJSONParser from 'parsers/manifestjson';
import BinaryScanner from 'scanners/binary';
import CSSScanner from 'scanners/css';
import FilenameS... | mozilla/addons-validator | tests/unit/test.linter.js | JavaScript | mpl-2.0 | 48,162 |
pref("extensions.mozilla.metrics.upload.enable", false);
pref("extensions.mozilla.metrics.upload.uri", "");
pref("extensions.mozilla.metrics.event-count", 0);
| tmhorne/celtx | extensions/metrics/metrics.js | JavaScript | mpl-2.0 | 159 |
/*
* Copyright (c) 2013-2015 by The SeedStack authors. All rights reserved.
*
* This file is part of SeedStack, An enterprise-oriented full development stack.
*
* 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 ... | adrienlauer/w20 | core/specs/env.spec.js | JavaScript | mpl-2.0 | 7,199 |
var searchData=
[
['saxbospiral_2eh',['saxbospiral.h',['../saxbospiral_8h.html',1,'']]],
['seconds_5faccuracy',['seconds_accuracy',['../structsxbp__spiral__t.html#a6cc77db86769a704a5e8582cd78f1de0',1,'sxbp_spiral_t']]],
['seconds_5fspent',['seconds_spent',['../structsxbp__spiral__t.html#ae68a77ca9421a76ee2a8880b1... | saxbophone/libsxbp | docs/search/all_9.js | JavaScript | mpl-2.0 | 9,729 |
/* 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 test = require('../ptaptest')
var Client = require('../client')
var TestServer = require('../test_server')
var... | dannycoates/picl-idp | test/remote/flow_tests.js | JavaScript | mpl-2.0 | 3,383 |
/*
* 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/.
*/
/*
* Copyright (c) 2014, Joyent, Inc.
*/
/*
* Test /images endpoints usage as a user, i.e. as cloudapi wil... | joyent/sdc-imgapi | test/images-as-a-user.dc-test.js | JavaScript | mpl-2.0 | 14,412 |
/* 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 test = require('../ptaptest')
var log = { trace: function() {} }
var tokens = require('../../tokens')(log)
va... | jamonation/fxa-auth-server | test/local/session_token_tests.js | JavaScript | mpl-2.0 | 1,881 |
/* 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 {getTargetAboutUrl} = require('../lib/appUrlUtil')
// BRAVE_UPDATE_HOST should be set to the host name for t... | darkdh/browser-laptop | js/constants/appConfig.js | JavaScript | mpl-2.0 | 6,775 |
import keycode from "keycode"
import { OBJECT_SLATE_PICTURE_FROM_IMMUTABLE } from "../../../constants/rules-submission"
// return
export const ToggleFeature = options => {
const { key } = options
return {
onKeyDown(event, change) {
const { value } = change
if (!event.metaKey || keycode(event.whic... | dmitrizzle/Analog.Cafe | src/app/user/components/pages/Composer/plugins.js | JavaScript | mpl-2.0 | 730 |
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/**
* Make sure that pausing on exceptions works.
*/
const TAB_URL = EXAMPLE_URL + "doc_pause-exception... | Yukarumya/Yukarum-Redfoxes | devtools/client/debugger/test/mochitest/browser_dbg_pause-exceptions-01.js | JavaScript | mpl-2.0 | 8,320 |
var NAVTREEINDEX5 =
{
"le__ecall__interface_8h.html#a777e8d6608b5e40f73696904471519cfa37adae3ab192525db0848a626869f9bf":[1,0,0,0,11,5,6],
"le__ecall__interface_8h.html#a777e8d6608b5e40f73696904471519cfa39edbd2d426729ea02e7495c19abe89b":[1,0,0,0,11,5,10],
"le__ecall__interface_8h.html#a777e8d6608b5e40f73696904471519cfa3... | legatoproject/legato-docs | 15_08/navtreeindex5.js | JavaScript | mpl-2.0 | 21,239 |
/* 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";
// See https://bugzilla.mozilla.org/show_bug.cgi?id=941083
const kWidgetId = "test-invalidate-wrap... | Yukarumya/Yukarum-Redfoxes | browser/components/customizableui/test/browser_941083_invalidate_wrapper_cache_createWidget.js | JavaScript | mpl-2.0 | 1,414 |
(function() {var implementors = {};
implementors['angle'] = [];
if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}
})()
| susaing/doc.servo.org | implementors/angle/hl/trait.AsAngleEnum.js | JavaScript | mpl-2.0 | 282 |
import {
Fragment,
useState,
useReducer,
useEffect,
useCallback,
useMemo,
useRef,
useContext,
} from 'react';
import {
Routes,
Route,
Navigate,
useHref,
useParams,
useNavigate,
} from 'react-router-dom';
import {useAPI, useResource, selectAPINull} from '@xorkevin/substation';
import {
useA... | hackform/nuke | src/container/conduit/dms.js | JavaScript | mpl-2.0 | 25,233 |
"use strict";
(function() {
$('tr#zh-CN').prependTo('table.build-table > tbody');
$('tr#zh-TW').prependTo('table.build-table > tbody');
$('tr#zh-TW, tr#zh-TW th').css('font-weight', 'bold');
})(); | elin-moco/bedrock | media/js/mocotw/highlight-zh-tw.js | JavaScript | mpl-2.0 | 209 |
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '../tests_standalone',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
'../compiled/*.standalone.js',
'*.js'
],
// ... | renie/thorJs | karmaConfigs/karma.standalone.conf.js | JavaScript | mpl-2.0 | 975 |
/* 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 flowMetrics = require('../flow-metrics');
const logFlowEvent = require('../flow-event').logFl... | shane-tomlinson/fxa-content-server | server/lib/routes/get-metrics-flow.js | JavaScript | mpl-2.0 | 1,683 |
// map reduce the kills per timestamp.
/*
var mapFunction = function(KillerChampId,VictimChampId){
killList = this.find({$and[{'KillerChampID':KillerChampId},{'VictimChampId':VictimChampId}]});
killList.forEach(function(kill){
emit(kill.timestamp,1)
});
}*/
mongodb = require('mongodb... | notnarb/LOLScrub | matchProcessor/GetOverallMatchupOddsTime/main.js | JavaScript | mpl-2.0 | 3,957 |
/*
Microformats Test Suite - Downloaded from github repo: microformats/tests version v0.1.24
Mocha integration test from: microformats-v2/rel/nofollow
The test was built on Fri Sep 25 2015 13:26:26 GMT+0100 (BST)
*/
assert = chai.assert;
describe('rel', function() {
var htmlFragment = "<a rel=\"nofollow\" href=\"... | Yukarumya/Yukarum-Redfoxes | toolkit/components/microformats/test/standards-tests/mf-v2-rel-nofollow.js | JavaScript | mpl-2.0 | 1,040 |
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/**
* Tests that Debugger Search uses the identifier under cursor if nothing is
* selected or manually p... | Yukarumya/Yukarum-Redfoxes | devtools/client/debugger/test/mochitest/browser_dbg_search-autofill-identifier.js | JavaScript | mpl-2.0 | 5,679 |
import {assert} from 'chai';
import OrderedElements from '../src/ordered-elements';
import {
generateCSSRuleset, generateCSS, defaultSelectorHandlers
} from '../src/generate';
describe('generateCSSRuleset', () => {
const assertCSSRuleset = (selector, declarations, expected) => {
const orderedDeclarati... | ed1d1a8d/macweb | node_modules/aphrodite/tests/generate_test.js | JavaScript | agpl-3.0 | 10,770 |
import { compact, omit } from 'lodash'
const tableName = 'search_index'
const columnName = 'document'
const defaultLang = 'english'
const raw = str => bookshelf.knex.raw(str)
const dropView = () => raw(`drop materialized view ${tableName}`)
const refreshView = () => raw(`refresh materialized view ${tableName}`)
co... | Connoropolous/hylo-node | api/services/FullTextSearch.js | JavaScript | agpl-3.0 | 3,108 |
/*
*
* (c) Copyright Ascensio System SIA 2010-2020
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL it... | ONLYOFFICE/web-apps | apps/spreadsheeteditor/main/app/view/ViewTab.js | JavaScript | agpl-3.0 | 15,300 |
;
(function (define, undefined) {
define(["underscore"], function (_) {
var html, contribution, title, subtitle, liqPay;
title = '<h3>Ви реєструєтеся на курс <%=course_num%> <%=course_name%></h3>';
subtitle = '<p class="description">EdEra – освітній проект з соціальною місією – зробити освіту якісною та... | chudaol/edx-platform | lms/static/js/verify_student/templates/EdEraPaymentTemplate.js | JavaScript | agpl-3.0 | 1,493 |
/*Copyright (C) 2015 Sao Tien Phong (http://saotienphong.com.vn)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This ... | Openroadvietnam/openaccounting | modules/lists/ls-dmnguonvon.js | JavaScript | agpl-3.0 | 973 |
(function(){
var apiUrl = "https://export.dhtmlx.com/gantt";
var templates = [
"leftside_text",
"rightside_text",
"task_text",
"progress_text",
"task_class"
];
function xdr(url, pack, cb){
if (gantt.env.isIE){
gantt.env.isIE = false;
gantt.ajax.post(url, pack, cb);
gantt.env.isIE = true;
} else... | Werdffelynir/owncollab_chart | js/community/api.js | JavaScript | agpl-3.0 | 21,697 |
import {
openFolder,
getOpenedFolderId
} from 'drive/web/modules/navigation/duck'
import { revokeClient as reduxRevokeClient } from 'drive/mobile/modules/authorization/duck'
import {
startReplication as startPouchReplication,
createIndexes,
warmUpIndexes
} from 'drive/mobile/lib/replication'
import { resetCl... | cozy/cozy-files-v3 | src/drive/mobile/modules/replication/sagas.js | JavaScript | agpl-3.0 | 1,820 |
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
$(document).ready(function () {
var observeMeetingNoticePeriodField = function()
{
var currentMeetingNoticePeriod = parseInt($('span.meeting_notice_period').first().... | oneclickorgs/one-click-orgs | app/assets/javascripts/change_meeting_notice_period_resolutions.js | JavaScript | agpl-3.0 | 1,310 |
/**
* notification using Bootstrap
* Copyright 2013, Viktor Melnikov
* Version 1.0 - Updated: August, 25, 2013
*
* Example (minimum settings):
* noty({
* message : 'text'
* });
*/
;(function ( $, window, document, undefined ) {
"use strict";
var pluginName = 'notification';
functi... | Viktor-Melnikov/simplex | www/application/public/js/notification.js | JavaScript | agpl-3.0 | 3,734 |
"use strict";
(function () {
var closeMenus = function () {
var openMenus = document.querySelectorAll('.menuLinks.open'),
len = openMenus.length,
i = 0;
for (i=0; i<len; i++) {
openMenus[i].classList.remove('open');
(function (i) {
... | City-of-Bloomington/calendar-aggregator | public/js/menus.js | JavaScript | agpl-3.0 | 984 |
//
// Copyright (C) 2014 - 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/coffeescripts/util/PandaPubPoller.js | JavaScript | agpl-3.0 | 3,775 |
var chessground = require('chessground');
var partial = chessground.util.partial;
var editor = require('./editor');
var m = require('mithril');
var keyboard = require('./keyboard');
module.exports = function(cfg) {
this.data = editor.init(cfg);
this.options = cfg.options || {};
this.embed = cfg.embed;
this.t... | clarkerubber/lila | ui/editor/src/ctrl.js | JavaScript | agpl-3.0 | 3,174 |
#!/usr/bin/env node
var fs = require('fs'),
path = require('path'),
program = require('commander'),
read = require('fs-readdir-recursive'),
sharp = require('sharp'),
sqlite3 = require('sqlite3').verbose();
program.parse(process.argv);
var tileSize = 256;
// Still need to add code to run vips & g... | bdunnette/wstiles | svs2wstiles-sharp.js | JavaScript | agpl-3.0 | 3,325 |
/**
* \details © 2011 Open Ximdex Evolution SL [http://www.ximdex.org]
*
* Ximdex a Semantic Content Management System (CMS)
*
* 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 Founda... | XIMDEX/ximdex | public_xmd/src/Widgets/browserwindow/js/panels.js | JavaScript | agpl-3.0 | 9,817 |
require("../../../test_helper");
const React = require("react"),
XPathUtils = require("xpath-react/utils");
const AnswerTextLarge = require("../../../../lib/screens/answer/types/text_large");
describe("AnswerTextLarge", function () {
it("should render a label with the provided title", function () {
var ... | Itera/itera-feedback | client/test/screens/answer/types/text_large_test.js | JavaScript | agpl-3.0 | 896 |
/**
*
* Maps a callable object over an array.
*
* /!\ currently only supports a (function, array) tuple as argument
*
*/
export function map(callable, iterable, out) {
const len = iterable.length;
for (let i = 0; i < len; ++i) {
out.push(callable(iterable[i]));
}
return out;
}
| aureooms/js-array | src/map/map.js | JavaScript | agpl-3.0 | 293 |
/*
Copyright 2008 Clipperz Srl
This file is part of Clipperz Community Edition.
Clipperz Community Edition is a web-based password manager and a
digital vault for confidential data.
For further information about its features and functionalities please
refer to http://www.clipperz.com
* Clipperz Community Edition is ... | weisslj/clipperz-communityEdition | js/src/Clipperz/PM/DataModel/OneTimePasswordManager.js | JavaScript | agpl-3.0 | 10,500 |
Backbone.SIXHIARA = Backbone.SIXHIARA || {};
Backbone.SIXHIARA.LicenseView = Backbone.UILib.BaseView.extend({
events: {
'click input:checkbox': 'clickActive',
'click .help': 'showModalEstadoLicencia',
},
initialize: function (options) {
Backbone.UILib.BaseView.prototype.initialize.... | iCarto/utentes-ui | views/new/LicenseView.js | JavaScript | agpl-3.0 | 4,505 |
/*!
* Mercury Editor is a CoffeeScript and jQuery based WYSIWYG editor. Documentation and other useful information can be
* found at https://github.com/jejacks0n/mercury
*
* Supported browsers:
* - Firefox 4+
* - Chrome 10+
* - Safari 5+
*
* Copyright (c) 2011 Jeremy Jackson
*
* Permission is hereby g... | alabs/15mcc | webapp/vendor/assets/javascripts/mercury.js | JavaScript | agpl-3.0 | 24,803 |
var inherits = require("util").inherits;
var extend = require("util")._extend;
var EventEmitter = require("events").EventEmitter;
var Users = require("smoke-signals").Users;
function Swarm(id, chunks) {
this.id = id;
this.chunks = chunks;
this.users = new Users();
this.users.on("add", functio... | tOkeshu/waggle.js | server/hive.js | JavaScript | agpl-3.0 | 1,855 |
function search(){
var keyword = $("#search-text").val();
keyword=keyword.replace(/ /g,"+");
var startDate = $("#start-date").val();
var endDate = $("#end-date").val();
var site = "http://api.usa.gov/recalls/search.json?query="+keyword+"&start_date="+encodeURIComponent(startDate)+"&end_date="+encodeURIComponent(en... | MicroHealthLLC/mRecall | mRecall/main.js | JavaScript | agpl-3.0 | 5,099 |
define([
"./core",
"./manipulation/var/rcheckableType",
"./core/init",
"./traversing", // filter
"./attributes/prop"
], function( jQuery, rcheckableType ) {
var r2 = /%2/g,
rbracket = /\[\]$/,
rCRLF = /\r?\n/g,
rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
rsubmittable = /^(?:input|select|textare... | Firescar96/kotoken | app/assets/css-toggle-switch-gh-pages/bower_components/jquery/src/serialize.js | JavaScript | agpl-3.0 | 3,211 |
var QueryUI = (function(queryTab){
var QueryTab = queryTab;
var DataSource = queryTab.find('select.datasource');
var ISQLParser = (function()
{
var SingleLineComments = /^\s*(\/\/|--).*$/gm;
var Extract = new RegExp(/'[^']*'/m);
var AutoSplit = /\s(select|insert|update|delete|exec|execute|explain|e... | zheguang/voltdb | src/frontend/org/voltdb/dbmonitor/js/queryui.js | JavaScript | agpl-3.0 | 12,884 |
/*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2017 Kuali, Inc.
*
* 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 Foundat... | quikkian-ua-devops/will-financials | kfs-web/src/main/webapp/kr/scripts/lookup.js | JavaScript | agpl-3.0 | 2,334 |
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import { terser } from "rollup-plugin-terser";
import process from "process";
const production = process.env["COMPILATION_MODE"] === "opt";
export default {
external: ["protobufjs/light"],
output: {
glob... | simgunz/anki | ts/rollup.config.js | JavaScript | agpl-3.0 | 720 |
var tPieceData = {
colladaXml : 'objects/10.dae',
previewImg : 'img/10.png'
};
mOdeViewer.addPiece(tPieceData); | bloowitt/odeViewer | objects/10.js | JavaScript | agpl-3.0 | 112 |
var socket = require("socket.io-client")("http://localhost:8181");
//var socket = require("socket.io-client")("http://bostontraintrack.com:8190");
//var socket = require("socket.io-client")("http://bostontraintrack.com:8183");
function printdata(data, color) {
var trips = data[color].TripList.Trips;
for (x in tri... | abetusk/bostontraintrack | cli/cli_metro.js | JavaScript | agpl-3.0 | 1,399 |
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'ko', {
euro: '유로화 기호',
lsquo: '왼쪽 외 따옴표',
rsquo: '오른쪽 외 따옴표',
ldquo: '왼쪽 쌍 따옴표',
rdquo: '오른쪽... | astrobin/astrobin | astrobin/static/astrobin/ckeditor/plugins/specialchar/dialogs/lang/ko.js | JavaScript | agpl-3.0 | 5,338 |