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
'use strict'; describe('Controller: GeneralCtrl', function () { // load the controller's module beforeEach(module('golfAdminApp')); var GeneralCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); GeneralCtr...
SinfoProject/golfAdmin
test/spec/controllers/general.js
JavaScript
gpl-3.0
566
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("codemirror/lib/codemirror")); else mod(CodeMirror); })(function(CodeMirror) { "use strict"; const comment = { regex: /\(\*/, push: "comment", token: "comment" }; const base = [ { regex: /"(?:[^\...
astampoulis/makam
webui/makam-codemirror.js
JavaScript
gpl-3.0
3,725
var a00099 = [ [ "enc_info", "a00099.html#ad111ceb6802da6301dbe73a73b35a4a1", null ], [ "id_info", "a00099.html#a301c28abac3bf1f2f38d2b95854695cd", null ], [ "master_id", "a00099.html#ad0cc95342832dacb99b8b0daede5856c", null ], [ "peer_addr", "a00099.html#a2c9e328ee5b20afe64224e8d807e0015", null ], ...
DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware
nrf51_sdk/Documentation/s120/html/a00099.js
JavaScript
gpl-3.0
393
const corenlp = require("corenlp"); const CoreNLP = corenlp.default; // convenient when not using `import` /** * IMPORTANT * The server http://corenlp.run is used here just for demo purposes. * It is not set up to handle a large volume of requests. Instructions for * setting up your own server can be found in the...
gerardobort/node-corenlp
examples/runkit.js
JavaScript
gpl-3.0
1,350
/* * 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/. */ /** * @module twitter-account * @license MPL-2.0 */ "use strict"; const twitter = require("twitter-text"); ...
mozillach/gh-projects-content-queue
lib/accounts/twitter.js
JavaScript
mpl-2.0
12,246
"use strict"; const React = require('react'); const _ = require('lodash'); const TabActions = require('../../actions/tabActions'); const TabList = React.createClass({ propTypes: { openTabs: React.PropTypes.arrayOf(React.PropTypes.object).isRequired, activeTabIndex: React.PropTypes.number.isRequired }, ...
amgaera/azure-storage-navigator
src/components/tabs/tabList.js
JavaScript
mpl-2.0
1,052
angular.module("app").factory('Helpers', function() { var service = { replaceEmptyStrings: function(object) { for (var i in object) { if (object.hasOwnProperty(i)) { if ((typeof object[i] === 'string' || object[i] instanceof String) && object[i] === "") { object[i] = null; ...
aksareen/balrog
ui/app/js/services/helper_service.js
JavaScript
mpl-2.0
403
defineComponent('login', { prototype: { data() { return { password: '', username: '', errors: [], } }, computed: { is_not_clickable() { if (!this.username) return true; if (!this.password) return true; return f...
AnyBlok/anyblok_furetui
anyblok_furetui/auth/components/login.js
JavaScript
mpl-2.0
1,656
/* * Any copyright is dedicated to the Public Domain. * http://creativecommons.org/licenses/publicdomain/ */ var gTestfile = 'ownkeys-trap-duplicates.js'; var BUGNUMBER = 1293995; var summary = "Scripted proxies' [[OwnPropertyKeys]] should not throw if the trap " + "implementation returns duplicate properties a...
Yukarumya/Yukarum-Redfoxes
js/src/tests/ecma_6/Proxy/ownkeys-trap-duplicates.js
JavaScript
mpl-2.0
1,004
/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ "use strict"; var isOSX = Services.appinfo.OS === "Darwin"; add_task(function* () { let shortcuts = new KeyShortcuts({ window }); yield testSimple(shortcuts); yield testNonLetterCharacter(shortcut...
Yukarumya/Yukarum-Redfoxes
devtools/client/shared/test/browser_key_shortcuts.js
JavaScript
mpl-2.0
11,394
/* Battleship browser client version 0.1.2 required battleshipclient.js >=0.1.2 battleshipgraphics.js >=0.1.2 */ function battleshipSession(){ this.isMatchBeginning = false; this.isPlayerMoved = false; this.playerIndex = -1; this.Grid = { Self: [], Enemy: [], }; this.Ships = { ...
trueromanus/battleship
src/battleship/public/javascripts/battleshiplogic.js
JavaScript
mpl-2.0
9,958
CoSeMe.namespace('protocol', (function(){ 'use strict'; var k = CoSeMe.protocol.dictionary; // protocol constants var token2Code = k.token2Code; var ByteArray = CoSeMe.utils.ByteArrayWA; var logger = new CoSeMe.common.Logger('BinaryWriter'); var IS_COUNTING = true; var IS_RAW = true; /** * The bi...
mozillahispano/coseme
src/protocol/binary_writer.js
JavaScript
mpl-2.0
13,957
highlightNavButton('#payments'); /*************** Cached Selectors ***************/ /* Tables / Charts / Tooltips */ var $transactionHistoryTable = $('#transaction-history-table'); var $transactionBarGraphContainer = $('#transaction-history-highchart'); var $payoutToolTips = $(".payout-tooltip"); var $transactionHist...
NYPD/pms
WebContent/js/payouts.js
JavaScript
mpl-2.0
11,044
/* * 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. */ var clone = require('clone'); var tape = require('tape'); var uuid...
pfmooney/moray
test/buckets.test.js
JavaScript
mpl-2.0
9,723
/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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/. */ /* * Date: 14 April 2001 ...
mozilla/rhino
testsrc/tests/js1_5/extensions/getset-003.js
JavaScript
mpl-2.0
4,686
(function (module) { mifosX.controllers = _.extend(module, { ViewSavingDetailsController: function (scope, routeParams, resourceFactory, paginatorService, location, $uibModal, route, dateFilter, $sce, $rootScope, API_VERSION) { scope.report = false; scope.hidePentahoReport = true; ...
gkrishnan724/community-app
app/scripts/controllers/savings/ViewSavingDetailsController.js
JavaScript
mpl-2.0
25,472
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { csetWithCcovData } from '../utils/data'; import hash from '../utils/hash'; import * as FetchAPI from '../utils/fetch_data'; const parse = require('parse-diff'); /* DiffViewer loads a raw diff from Mozilla's hg-web and code co...
LinkaiQi/firefox-code-coverage-frontend
src/components/diffviewer.js
JavaScript
mpl-2.0
6,160
(function(global, _) { var Dataset = global.Miso.Dataset; Dataset.typeOf = function(value, options) { var types = _.keys(Dataset.types), chosenType; //move string and mixed to the end types.push(types.splice(_.indexOf(types, 'string'), 1)[0]); types.push(types.splice(_.indexOf(types, 'mix...
bwinton/d3Experiments
bower_components/miso.dataset/src/types.js
JavaScript
mpl-2.0
6,215
angular.module('app.preferences.email.directives').directive('sharedWith', sharedWith); function sharedWith() { return { restrict: 'E', replace: true, templateUrl: 'preferences/email/directives/shared_with.html', }; }
HelloLily/hellolily
frontend/app/preferences/email/controllers/shared_with.js
JavaScript
agpl-3.0
251
/* eslint "import/prefer-default-export": 0 */ /* eslint "new-cap": 0 */ import { toGlobalId } from "graphql-relay"; import icalendar from "icalendar"; import moment from "moment"; import Event from "./models/Event"; export function icalEvents(req, res, next) { let query = Event.find({ "permissions.public": true }...
strekmann/nidarholmjs
src/server/icalRoutes.js
JavaScript
agpl-3.0
1,934
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2014-10-13 using // generator-karma 0.8.3 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
Bluelytics/bluelytics_frontend
test/karma.conf.js
JavaScript
agpl-3.0
2,084
import React from 'react'; import StatisticBox from 'interface/others/StatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; const MS_BUFFER=200; const ABUNDANCE_MANA_REDU...
FaideWW/WoWAnalyzer
src/parser/druid/restoration/modules/talents/Abundance.js
JavaScript
agpl-3.0
2,620
/* © 2016 Jairo Llopis <jairo.llopis@tecnativa.com> * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ (function ($) { "use strict"; $('.oe_website_sale').each(function () { var $this = $(this), $country_selector = $this.find("select[name=country_id]"), $no_coun...
brain-tec/e-commerce
website_sale_checkout_country_vat/static/src/js/change_country.js
JavaScript
agpl-3.0
921
/* * 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...
telefonicaid/iotagent-node-lib
lib/services/devices/deviceRegistryMongoDB.js
JavaScript
agpl-3.0
11,503
class PandaseqModule extends Module { constructor (params) { super ("pandaseq", "https://github.com/yoann-dufresne/amplicon_pipeline/wiki/Pandaseq-module"); this.params = params; } onLoad () { super.onLoad(); var that = this; // --- Inputs --- var inputs = this.dom.getElementsByClassName('input_file'...
yoann-dufresne/amplicon_pipeline
www/modules/pandaseq.js
JavaScript
agpl-3.0
1,149
const patron = require('patron.js'); class Remove extends patron.Command { constructor() { super({ names: ['remove', 'r'], groupName: 'fun', description: 'Deletes the command', guildOnly: false, args: [ new patron.Argument({ name: 'text', key: 'text', ...
VapidSlay/selfbot
src/commands/Fun/remove.js
JavaScript
agpl-3.0
565
import { event as currentEvent, selectAll as d3SelectAll, select as d3Select, mouse as currentMouse, } from 'd3-selection' import { NODE_RADIUS } from '../constants' const nodeRe = /node(\d*)_(.*)/ const getNodeIdFromElementId = (elementId) => ( [ elementId.replace(nodeRe, "$1"), e...
bryanph/Geist
client/app/components/graphs/ExploreGraph/drag.js
JavaScript
agpl-3.0
6,601
(function(C2C, $) { // area selector size C2C.changeSelectSize = function(id, up_down) { var select = $('#' + id); var height = select.height(); if (up_down) { height += 150; } else { height = Math.max(100, height - 150); } select.height(height); }; // for some search inp...
c2corg/camptocamp.org
web/static/js/filter.js
JavaScript
agpl-3.0
2,561
'use strict'; var Tokenizer = require('../tokenization/tokenizer'), HTML = require('./html'); //Aliases var $ = HTML.TAG_NAMES, NS = HTML.NAMESPACES, ATTRS = HTML.ATTRS; //MIME types var MIME_TYPES = { TEXT_HTML: 'text/html', APPLICATION_XML: 'application/xhtml+xml' }; //Attributes var DEFINITI...
Adimpression/NewsMute
service/lambda/counsellor/node_modules/cheerio/node_modules/jsdom/node_modules/parse5/lib/common/foreign_content.js
JavaScript
agpl-3.0
9,186
var map; var maps = []; var thisLayer; var proj_4326 = new OpenLayers.Projection('EPSG:4326'); var proj_900913 = new OpenLayers.Projection('EPSG:900913'); var vlayer; var vlayers = []; var highlightCtrl; var selectCtrl; var selectedFeatures = []; function initEditMap(settings){ var defaultSettings = { ...
txau/OpenEvSys
www/res/openlayers/map.js
JavaScript
agpl-3.0
26,354
// installed by cozy-scripts require('babel-polyfill') // polyfill for requestAnimationFrame /* istanbul ignore next */ global.requestAnimationFrame = cb => { setTimeout(cb, 0) }
gregorylegarec/cozy-collect
test/jestLib/setup.js
JavaScript
agpl-3.0
182
'use strict'; angular.module('malariaplantdbApp') .config(function ($stateProvider) { $stateProvider .state('admin', { abstract: true, parent: 'site' }); });
acheype/malaria-plant-db
src/main/webapp/scripts/app/admin/admin.js
JavaScript
agpl-3.0
231
OC.L10N.register( "external", { "Please enter valid urls - they have to start with either http://, https:// or /" : "Ju lutemi, jepni URL të vlefshme - duhet të fillojnë http://, https:// ose /", "External sites saved." : "Sajtet e jashtëm u ruajtën.", "External Sites" : "Sajte të Jashtëm", "Ple...
jacklicn/owncloud
apps/external/l10n/sq.js
JavaScript
agpl-3.0
1,106
/* Copyright 2012 Canonical Ltd. This software is licensed under the * GNU Affero General Public License version 3 (see the file LICENSE). */ YUI.add('lp.registry.team.mailinglists.test', function (Y) { // Local aliases. var Assert = Y.Assert, ArrayAssert = Y.ArrayAssert; var team_mailinglists = ...
abramhindle/UnnaturalCodeFork
python/testdata/launchpad/lib/lp/registry/javascript/tests/test_team_mailinglists.js
JavaScript
agpl-3.0
2,657
/* * This file is part of huborcid. * * huborcid 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. * * huborcid is distrib...
Cineca/OrcidHub
src/main/webapp/bower_components/angular-i18n/angular-locale_uz-cyrl.js
JavaScript
agpl-3.0
3,592
MWF.xApplication.Selector = MWF.xApplication.Selector || {}; MWF.xDesktop.requireApp("Selector", "Identity", null, false); MWF.xApplication.Selector.IdentityWidthDuty = new Class({ Extends: MWF.xApplication.Selector.Identity, options: { "style": "default", "count": 0, "title": "", ...
o2oa/o2oa
o2web/source/x_component_Selector/IdentityWidthDuty.js
JavaScript
agpl-3.0
29,141
/** * * @param viewMode * @constructor */ function ComboBoxControl( viewMode ) { _.superClass( ListBoxControl, this, viewMode ); } _.inherit( ComboBoxControl, ListEditorBaseControl ); _.extend( ComboBoxControl.prototype, { /** * * @returns {ComboBoxModel} */ createControlModel: functio...
InfinniPlatform/InfinniUI
app/controls/comboBox/comboBoxControl.js
JavaScript
agpl-3.0
752
/** * The tab view stacks several pages above each other and allows to switch * between them by using a list of buttons. * * The buttons are positioned on one of the tab view's edges. * * *Example* * * Here is a little example of how to use the widget. * * <pre class='javascript'> * var tabView = new qx.ui...
Seldaiendil/meyeOS
devtools/qooxdoo-1.5-sdk/framework/source/class/qx/ui/tabview/__init__.js
JavaScript
agpl-3.0
1,118
load('nashorn:mozilla_compat.js'); /* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you can redistribute ...
NoetherEmmy/intransigentms-scripts
npc/9201062.js
JavaScript
agpl-3.0
2,969
import {EditorState} from 'draft-js'; import {repositionHighlights, redrawHighlights} from '.'; /** * @typedef StateWithComment * @property {ContentState} editorState * @property {Comment} activeHighlight */ /** * @name updateHighlights * @description Updates highlight information after every content change. It...
Aca-jov/superdesk-client-core
scripts/core/editor3/reducers/highlights/highlights.js
JavaScript
agpl-3.0
1,765
define([ "breakeven/config" ], function ( config ) { return { input: { verkaufspreis: 75000, absatzmenge: 200, variable_kosten: 2500, fixkosten: 8000, fixkosten_in_prozent: 22.4, stueckkosten: 150, deckungsbeitrag: 50, gewinnschwelle: 1250, umsatzerloese...
ohaz/amos-ss15-proj1
FlaskWebProject/static/scripts/rechner/spec/breakeven/testData2.js
JavaScript
agpl-3.0
829
Ext.define("CMDBuild.controller.management.common.CMModClassAndWFCommons", { /* * retrieve the form to use as target for the * templateResolver asking it to its view * * returns null if something is not right */ getFormForTemplateResolver: function() { var form = null; if (this.view) { var wm = thi...
jzinedine/CMDBuild
cmdbuild/src/main/webapp/javascripts/cmdbuild/controller/management/common/CMModClassAndWFCommons.js
JavaScript
agpl-3.0
497
/* * Copyright (C) 2016 OpenMotics BV * * 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 program ...
openmotics/gateway-frontend
src/resources/globalthermostat/thermostat.js
JavaScript
agpl-3.0
1,490
// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file. // Implements the 64K "X07" AtariAge format jt.Cartridge64K_X07 = function(rom, format) { "use strict"; function init(self) { self.rom = rom; self.format = format; bytes = rom.content; // uses th...
ppeccin/javatari.js
src/main/atari/cartridge/formats/Cartridge64K_X07.js
JavaScript
agpl-3.0
2,125
'use strict' exports.up = function(knex) { return knex.schema.createTable('comments', function(table) { table.increments() table.string('text').notNullable() table.integer('userId') table.integer('pageId') table.integer('parentId') table.timestamp('createdAt').defaultTo(knex.raw('CURRENT_TI...
fiddur/some-comments
migrations/20150923143009_comments.js
JavaScript
agpl-3.0
524
var utils = require('../../utils'); var discoverHelper = require('../../helpers/discover-helper'); var chai = require('chai'); var chaiAsPromised = require('chai-as-promised'); chai.use(chaiAsPromised); var expect = chai.expect; describe('discover search', () => { before(async () => { browser.get(browse...
Rademade/taiga-front
e2e/suites/discover/discover-search.e2e.js
JavaScript
agpl-3.0
3,834
'use strict'; app. factory("DashboardResource",function($resource,urlApi){ return $resource(urlApi+'dashboard',{},{ dashboard: { method: 'GET' } }); });
appsindicato/APP-Sindicado-Eleicoes
webapp/app/scripts/resources/dashboard.js
JavaScript
agpl-3.0
168
/* 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( 'undo', 'nl', { redo: 'Opnieuw uitvoeren', undo: 'Ongedaan maken' } );
astrobin/astrobin
astrobin/static/astrobin/ckeditor/plugins/undo/lang/nl.js
JavaScript
agpl-3.0
265
const setup = require('../../setup') const SessionController = require('../../../api/controllers/SessionController') var factories = require('../../setup/factories') var passport = require('passport') describe('SessionController.findUser', () => { var u1, u2 var findUser = SessionController.findUser before(() =...
Hylozoic/hylo-node
test/unit/controllers/SessionController.test.js
JavaScript
agpl-3.0
11,949
Ext.ns('CMDBuild'); CMDBuild.FormPlugin = function(config) { Ext.apply(this, config); }; Ext.extend(CMDBuild.FormPlugin, Ext.util.Observable, { init: function(formPanel) { var basicForm = formPanel.getForm(); /** * * clears the form, * to use when trackResetOnLoad = true; i...
jzinedine/CMDBuild
cmdbuild/src/main/webapp/javascripts/cmdbuild/form/FormPlugin.js
JavaScript
agpl-3.0
1,392
var clover = new Object(); // JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]} clover.pageData = {"classes":[{"el":53,"id":68288,"methods":[{"el":39,"sc":2,"sl":34},{"el":44,"sc":2,"sl":41},{"el":48,"sc":2,"sl":46},{"el":52,"sc":2,"sl":50}],"name":"DoubleArrayPointer","sl":29}]} // JSON: {test_...
cm-is-dog/rapidminer-studio-core
report/html/de/bwaldvogel/liblinear/DoubleArrayPointer.js
JavaScript
agpl-3.0
726
var clover = new Object(); // JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]} clover.pageData = {"classes":[{"el":50,"id":42785,"methods":[{"el":42,"sc":2,"sl":35},{"el":49,"sc":2,"sl":44}],"name":"ListeningJSlider","sl":30}]} // JSON: {test_ID : {"methods": [ID1, ID2, ID3...], "name" : "testX...
cm-is-dog/rapidminer-studio-core
report/html/com/rapidminer/gui/plotter/settings/ListeningJSlider.js
JavaScript
agpl-3.0
662
/* * This file is part of huborcid. * * huborcid 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. * * huborcid is distrib...
Cineca/OrcidHub
src/main/webapp/scripts/components/entities/envVariable/envVariable.service.js
JavaScript
agpl-3.0
1,196
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Combatants from 'Parser/Core/Modules/Combatants'; imp...
enragednuke/WoWAnalyzer
src/Parser/Mage/Frost/Modules/Features/ThermalVoid.js
JavaScript
agpl-3.0
2,491
//-*- coding: utf-8 -*- //############################################################################ // // OpenERP, Open Source Management Solution // This module copyright (C) 2015 Therp BV <http://therp.nl>. // // This program is free software: you can redistribute it and/or modify // it under the terms of ...
acsone/knowledge
attachment_edit/static/src/js/attachment_edit.js
JavaScript
agpl-3.0
2,047
import React from 'react'; import { shallow } from 'enzyme'; import SideBar from 'components/projects/SideBar'; describe('<SideBar />', () => { const render = props => { const defaultProps = { reverse: false, visibleColumns: { chillyBin: true, backlog: true, done: true, ...
Codeminer42/cm42-central
spec/javascripts/components/projects/side_bar/side_bar_spec.js
JavaScript
agpl-3.0
579
class Challenge { constructor(model = {}) { this.skills = model.skills || []; } addSkill(skill) { this.skills.push(skill); } hasSkill(searchedSkill) { return this.skills.filter((skill) => skill.name === searchedSkill.name).length > 0; } isPublished() { return ['validé', 'validé sans te...
sgmap/pix
api/lib/domain/models/Challenge.js
JavaScript
agpl-3.0
402
/** * Session Configuration * (sails.config.session) * * Sails session integration leans heavily on the great work already done by * Express, but also unifies Socket.io with the Connect session store. It uses * Connect's cookie parser to normalize configuration differences between Express * and Socket.io and hoo...
asm-products/hereapp
config/session.js
JavaScript
agpl-3.0
4,320
const mongoose = require('mongoose'); const config = require('../../config/config'); const _ = require('underscore'); const urlLib = require('url'); function getSellerFromURL(url) { if (!url) { return null; } const sellers = _.keys(config.sellers); return _.find(sellers, function(seller) { if (url.inde...
Cheapass/cheapass
src/utils/seller.js
JavaScript
agpl-3.0
4,500
/** * Created by helge on 24.08.16. */ import React from 'react'; import PropTypes from 'prop-types'; import FlagAmountBet from './FlagAmountBet'; import FlagAmountCall from './FlagAmountCall'; import FlagButton from './FlagButton'; import ControlBetRaise from './ControlBetRaise'; import ControlCheckCall from './Con...
VonIobro/ab-web
app/components/ActionBar/index.js
JavaScript
agpl-3.0
1,656
import _, { messages } from 'intl' import ActionButton from 'action-button' import decorate from 'apply-decorators' import Icon from 'icon' import React from 'react' import { addSubscriptions, resolveId } from 'utils' import { alert, confirm } from 'modal' import { createRemote, editRemote, subscribeRemotes } from 'xo'...
vatesfr/xo-web
packages/xo-web/src/xo-app/settings/remotes/remote.js
JavaScript
agpl-3.0
13,904
// note file for simple notes, to do it from 'message-file-2.js' // // The old file name got as: notes-file.js, but the 's' of 'notes' looks wierd, // dropping it. // // it's an plain text file. But it render as easy and fast to writ and read. // // make_note_file(meta, callback) // - make a note file, save it to s3...
goodagood/gg
plain/aws/note-file.js
JavaScript
lgpl-2.1
10,202
// constant definition const c = 11; shouldBe("c", "11"); // attempt to redefine should have no effect c = 22; shouldBe("c", "11"); const dummy = 0; for (var v = 0;;) { ++v; shouldBe("v", "1"); break; } // local vars & consts function h () { function shouldBe(_a, _b) { if (typeof _a != "string" || typeof ...
KDE/kjs
tests/const.js
JavaScript
lgpl-2.1
1,109
module.exports = iterator const normalizePaginatedListResponse = require('./normalize-paginated-list-response') function iterator (octokit, options) { const headers = options.headers let url = octokit.request.endpoint(options).url return { [Symbol.asyncIterator]: () => ({ next () { if (!url) ...
checkstyle/contribution
comment-action/node_modules/@octokit/rest/plugins/pagination/iterator.js
JavaScript
lgpl-2.1
993
function extension_runAudits(callback) { evaluateOnFrontend("InspectorTest.startExtensionAudits(reply);", callback); } // runs in front-end var initialize_ExtensionsAuditsTest = function() { InspectorTest.startExtensionAudits = function(callback) { const launcherView = WebInspector.panels.audits._l...
youfoh/webkit-efl
LayoutTests/inspector/extensions/extensions-audits-tests.js
JavaScript
lgpl-2.1
1,188
const DEPLOYMENT_TYPE_COSTS = { kubernetes_custom: 95000, kubernetes_existing: 0, kubernetes_reference: 45000, openstack_custom: 150000, openstack_existing: 0, openstack_reference: 75000 }; const MANAGED_SERVICE_COSTS = { maas: 300, openstack: 4275, kubernetes: 3250, openstack_and_kubernetes: 6465 ...
barrymcgee/www.ubuntu.com
static/js/src/tco-calculator.js
JavaScript
lgpl-3.0
5,881
/* ************************************************************************ GUI for JavaScript Client for XMPP (jc4xmpp) Copyright 2012 Dirk Woestefeld License: LGPL v3: http://www.gnu.org/licenses/lgpl.html A Copy of the License can be found in the directory of this project. ...
hobbytuxer/jc4xmpp
gui/source/class/jc4xmpp_ui/config/GeneralConfig.js
JavaScript
lgpl-3.0
4,742
/** * Created by LABS on 30.08.2016. */ $('document').ready(function(){ $('#alerts').jplist({ itemsBox: '.list' ,itemPath: '.list-item' ,panelPath: '.jplist-panel' }); }); function send_ajax_post_request(cve_id, software_id, option) { $.ajax({ type: "POST", url: "alerts.htm...
fkie-cad/iva
frontend/iva/static/iva/js/alerts.js
JavaScript
lgpl-3.0
1,532
jsh.App[modelid] = new (function(){ var _this = this; this.menu_id_auto = 0; this.oninit = function(){ XModels[modelid].menu_id_auto = function () { if(!_this.menu_id_auto) _this.menu_id_auto = xmodel.controller.form.Data.menu_id_auto; return _this.menu_id_auto; }; jsh.$root('.menu_id_au...
apHarmony/jsharmony-factory
models/Dev_Menu_Tree_Editor.js
JavaScript
lgpl-3.0
6,260
import {IDOC_STATE} from 'idoc/idoc-constants'; // Gets any prefix:uuid until ?, # or / is matched const INSTANCE_ID_REGEX = new RegExp('([a-z]+:[^?#/]+)', 'g'); export class UrlUtils { /** * Searches for an a parameter in a URL. * * @param url url to process * @param name name of the parameter * @r...
SirmaITT/conservation-space-1.7.0
docker/sep-ui/src/common/url-utils.js
JavaScript
lgpl-3.0
3,561
$.fn.croneditor = function(opts) { var el = this; // Write the HTML template to the document $(el).html(tmpl); var cronArr = ["*", "*", "*", "*", "*", "*"]; if (typeof opts.value === "string") { cronArr = opts.value.split(' '); } $( ".tabs" ).tabs({ activate: function( event, ui ) { sw...
liushuishang/YayCrawler
yaycrawler.admin/src/main/resources/static/assets/global/plugins/cron-editor/js/jquery.croneditor.js
JavaScript
lgpl-3.0
14,595
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property"); _Object$defineProperty(exports, "__esModule", { value: true }); exports.default = getLookup; var _slice...
Aymkdn/SharepointPlus
dist/utils/getLookup.js
JavaScript
lgpl-3.0
1,429
module.exports = function(grunt) { var version = grunt.option('release'); if (process.env.SELENIUM_BROWSER_CAPABILITIES != undefined) { var browser_capabilities = JSON.parse(process.env.SELENIUM_BROWSER_CAPABILITIES); } // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package....
vSaKv/openpgpjs
Gruntfile.js
JavaScript
lgpl-3.0
7,704
var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack.config'); new WebpackDevServer(webpack(config), { publicPath: '/' }).listen(3000, 'localhost', function (err, result) { if (err) { return console.log(err); } console.log('Listening at ht...
devsli/browser-webpack-brotli-error
devserver.js
JavaScript
unlicense
348
/*===============================================================+ | 0-ZeT Library for Nashorn-JsX [ 1.0 ] | | Asserts & Errors | | / anton.baukin@gmail.com / | +==================================================...
AntonBaukin/embeddy
springer/sources/net/java/osgi/embeddy/springer/jsx/zet/asserts.js
JavaScript
unlicense
2,337
exports.run = function (callback) { console.log("Hello from worker"); var uri = require.sandbox.id + require.id("./worker-runner.js"); console.log("Worker runner uri: " + uri); return require.sandbox(uri, function(sandbox) { return sandbox.main(callback); }, function (err) { console.log("Error while loa...
pinf-it/pinf-it-bundler
test/assets/packages/multiple-declared-exports-bundles/util/worker.js
JavaScript
unlicense
392
I.regist('z.Win',function(W,D){ var CFG={ skin:'Default', mask:true, mask_opacity:10, mask_color:'#FFF', mask_close:false, width:400, height:250, shadow:'#333 0px 0px 8px', round:6, title:'窗口', title_height:30, title_background:'#EFEFF0', title_color:'#000', title_border_color:'#BBB', tit...
6tail/nlf
WebContent/js/z/Win.js
JavaScript
unlicense
4,167
/** * A dock * @param {Object} The options * @constructor */ hui.ui.IFrame = function(options) { this.options = options; this.element = hui.get(options.element); this.name = options.name; hui.ui.extend(this); }; hui.ui.IFrame.prototype = { /** Change the url of the iframe * @param {String} url The url...
Humanise/hui
js/IFrame.js
JavaScript
unlicense
904
import React from 'react' import { Button } from 'styled-mdl' const demo = () => <Button raised>Raised</Button> const caption = 'Raised Button' const code = '<Button raised>Raised</Button>' export default { demo, caption, code }
isogon/styled-mdl-website
demos/buttons/demos/raised-default.js
JavaScript
unlicense
231
const bcrypt = require("bcryptjs"); const Promise = require("bluebird"); const hashPasswordHook = require('./utils/hashPasswordHook'); const Op = require("sequelize").Op; module.exports = function(sequelize, DataTypes) { const log = require("logfilename")(__filename); const models = sequelize.models; const User ...
FredericHeem/starhackit
server/src/plugins/users/models/UserModel.js
JavaScript
unlicense
5,359
/** * Created by charques on 23/8/16. */ 'use strict'; var express = require('express'); var router = express.Router(); var User = require(__base + 'app/models/user'); var hash = require(__base + 'app/helpers/crypto'); router.get('/', function(req, res) { User.find({}, function(err, users) { res...
charques/macrolayer
macrolayer-srv-login/app/controllers/users.js
JavaScript
unlicense
1,068
describe('test', function() { it('ok', function() { if (2 + 2 !== 4) throw(new Error('Test failed')) }) }) ;;
sunflowerdeath/broccoli-karma-plugin
test/files/ok.js
JavaScript
unlicense
113
const types = require('recast/lib/types') const { namedTypes: n, NodePath } = types const ABORT_EXCEPTION = Symbol('ABORT_EXCEPTION') /** * Low-level pre-order (breadth-first) traversal of an AST. * It invokes `callback` for everything in the AST, not just nodes. * * The callback can return false to skip the trav...
mdebbar/reshift
src/ast-traverse.js
JavaScript
unlicense
3,055
var _ = require("/lib/underscore"); function ActionBar (options, btnText) { options = (options) ? options : {}; var title = (options.title) ? options.title : ""; btnText = btnText || "..."; options = _.extend({ backgroundColor: '#5B7663', top: 0, left: 0, height: 45, width: Ti.UI.FILL, // fullscreen }, _.om...
rcelha/x360achievements2
Resources/ui/ActionBar.js
JavaScript
unlicense
1,018
$('#buscador').on("input", function() { var dInput = this.value; console.log("res es",dInput); });
dsaqp1516g4/www
js/buscador.js
JavaScript
apache-2.0
109
import { blue6, gold6, grey7, grey9, red6 } from "./colors"; /* SIZES */ export const FONT_SIZE_DEFAULT = "14px"; export const FONT_SIZE_LARGE = "16px"; export const FONT_SIZE_SMALL = "12px"; /* WEIGHTS */ export const FONT_WEIGHT_DEFAULT = 300; export const FONT_WEIGHT_HEAVY = 500; /* COLOURS */ export const FON...
phac-nml/irida
src/main/webapp/resources/js/styles/fonts.js
JavaScript
apache-2.0
727
import '@polymer/polymer/polymer-legacy.js'; import {PolymerElement} from '@polymer/polymer/polymer-element.js'; import Dexie from 'dexie'; import EtoolsAjaxRequestMixin from '../etools-ajax-request-mixin.js'; // set logging level window.EtoolsLogsLevel = window.EtoolsLogsLevel || 'INFO'; // custom dexie db that will b...
unicef-polymer/etools-ajax
demo/direct-etools-ajax-requests.js
JavaScript
apache-2.0
6,501
/* Copyright 2016 Mozilla 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 required by applicable law or agreed...
nawawi/pdf.js
web/toolbar.js
JavaScript
apache-2.0
9,112
"use strict"; var utils = exports; var emitter = require('./emitter'); /** * @returns {window} */ utils.getWindow = function () { return window; }; /** * * @returns {HTMLDocument} */ utils.getDocument = function () { return document; }; /** * Get the current x/y position crossbow * @returns {{x: *, y...
BrowserSync/browser-sync-core
client/lib/browser.utils.js
JavaScript
apache-2.0
3,359
var dynode = exports; dynode.Client = require('./dynode/client').Client; dynode.AmazonError = require('./dynode/amazon-error'); var defaultClient; dynode.auth = function(config) { defaultClient = new dynode.Client(config); }; var methods = [ 'listTables', 'describeTable', 'createTable', 'deleteTable', '...
Wantworthy/dynode
lib/dynode.js
JavaScript
apache-2.0
625
'use strict'; // Convenient Node cluster setup, which monitors and restarts child processes // as needed. Creates workers, monitors them, restarts them as needed, and // manages the flow of event messages between the cluster master and the // workers. // We use process.exit() intentionally here /* eslint no-process-e...
sasrin/cf-abacus
lib/utils/cluster/src/index.js
JavaScript
apache-2.0
10,064
export { default as withGuardian } from './withGuardian' export const holder = 1
mydearxym/mastani
src/hoc/index.js
JavaScript
apache-2.0
81
cc.Class({ extends: cc.Component, properties: { self: { default: null, type: cc.Button }, other1: { default: null, type: cc.Button }, other2: { default: null, type: cc.Button }, }, // called every frame, uncomment this...
lllyasviel/style2paints
V3/client/assets/script/toggleBTN.js
JavaScript
apache-2.0
518
// Copyright 2020 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleapis/nodejs-automl
samples/test/delete-model.beta.test.js
JavaScript
apache-2.0
1,548
// @autogenerated:start:ti.cloud.html_it-helloacs //var html_it-helloacs = require("ti.cloud.html_it-helloacs"); // @autogenerated:end:ti.cloud.html_it-helloacs // The contents of this file will be executed before any of // your view controllers are ever executed, including the index. // You have access to all functi...
alessioricco/html_it-helloacs
app/alloy.js
JavaScript
apache-2.0
755
//>>built define("dojox/editor/plugins/nls/it/Blockquote",{blockquote:"Blockquote"}); //# sourceMappingURL=Blockquote.js.map
Caspar12/zh.sw
zh.web.site.admin/src/main/resources/static/js/dojo/dojox/editor/plugins/nls/it/Blockquote.js
JavaScript
apache-2.0
124
var respecConfig = { specStatus: "ED", editors: [{ name: "Simon Cox", company: "CSIRO", companyURL: "http://www.csiro.au/", w3cid: 1796 }], otherLinks: [{ key: "Contributors", data: [ { value: "Peter Brenton" }, ] }], shortName: "vocab-project", edDraftURI: "http://dr-sho...
dr-shorthair/ont
docs/projconfig.js
JavaScript
apache-2.0
2,270
import {LogManager} from 'aurelia-framework'; import {HttpClient} from 'aurelia-fetch-client'; import {Router} from 'aurelia-router'; import {Configure} from 'aurelia-configuration'; import 'fetch'; import {Authentication} from './authentication'; let logger = LogManager.getLogger('openbelapi-client'); export class...
OpenBEL/belmgr
plugin/src/resources/openbelapi-client.js
JavaScript
apache-2.0
3,666
// (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...
balirwa/logs
www/core/components/login/controllers/credentials.js
JavaScript
apache-2.0
6,343
const assert = require('assert'); const Promise = require('bluebird'); const moment = require('moment'); const withV4 = require('../support/withV4'); const BucketUtility = require('../../lib/utility/bucket-util'); const checkError = require('../../lib/utility/checkError'); const changeObjectLock = require('../../../.....
scality/S3
tests/functional/aws-node-sdk/test/object/getRetention.js
JavaScript
apache-2.0
6,001