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 |
|---|---|---|---|---|---|
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | reidab/icecondor-server-rails | public/javascripts/ace/ace/search.js | JavaScript | agpl-3.0 | 9,844 |
/**
* Based conceptually on the _.extend() function in underscore.js ( see http://documentcloud.github.com/underscore/#extend for more details )
* Copyright (C) 2012 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955
*
* This program is free software: you can redistribute it and/or mo... | 4poc/anpaste | app/lib/deep_extend_underscore_mixin.js | JavaScript | agpl-3.0 | 2,385 |
import CodeClipboard from './CodeClipboard';
export default CodeClipboard; | StarterInc/Ignite | src/docs/src/components/CodeClipboard/index.js | JavaScript | agpl-3.0 | 75 |
const { Array } = require.main.require('./Tag/Classes');
class GetTag extends Array {
constructor(client) {
super(client, {
name: 'get',
args: [
{
name: 'array'
}, {
name: 'index'
}
],
minArgs: 2, maxArgs: 2
});
}
async execute(ctx, arg... | Ratismal/blargbot | Production/Tags/Array/Get.js | JavaScript | agpl-3.0 | 619 |
/*
This file is part of the Juju GUI, which lets users view and manage Juju
environments within a graphical interface (https://launchpad.net/juju-gui).
Copyright (C) 2012-2013 Canonical Ltd.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License... | jrwren/juju-gui | test/test_browser_charm_details.js | JavaScript | agpl-3.0 | 25,436 |
/**
* BLOCK: blocks
*
* Registering a basic block with Gutenberg.
* Simple block, renders and saves the same content without any interactivity.
*/
import "./editor.scss";
import "./style.scss";
import React from "react";
import Select from "react-select";
const {
PanelBody,
PanelRow,
ServerSideRender,
TextCon... | opencredit/badgeos | includes/blocks/src/evidence-block/block.js | JavaScript | agpl-3.0 | 6,640 |
/**
* @ngdoc service
* @name ftepApp.SubscriptionService
* @description
* # SubscriptionService
* Service for subscriptions.
*/
'use strict';
define(['../ftepmodules', 'traversonHal'], function (ftepmodules, TraversonJsonHalAdapter) {
ftepmodules.service('SubscriptionService', [ 'ftepProperties', '$q', 'tra... | cgi-eoss/ftep | f-tep-portal/src/main/resources/app/scripts/services/subscriptionservice.js | JavaScript | agpl-3.0 | 4,930 |
var request = require("request");
var yaml = require("js-yaml");
var jsonfile = require("jsonfile");
request("https://raw.githubusercontent.com/unitedstates/congress-legislators/master/legislators-current.yaml", function(error, response, body) {
if (!error && response.statusCode == 200) {
var legislators = yaml... | EdenSG/democracy.io | bin/update-congress.js | JavaScript | agpl-3.0 | 1,161 |
/**
* Nooku Framework - http://www.nooku.org
*
* @copyright Copyright (C) 2011 - 2017 Johan Janssens and Timble CVBA. (http://www.timble.net)
* @license GNU AGPLv3 <https://www.gnu.org/licenses/agpl.html>
* @link https://github.com/timble/openpolice-platform
*/
if(!Ckeditor) var Ckeditor = {};
Ckeditor.Files ... | timble/openpolice-platform | component/ckeditor/resources/assets/js/ckeditor.files.js | JavaScript | agpl-3.0 | 2,785 |
var articles = null;
function restore_all_articles_view() {
$("#allbtn").button('toggle');
$('#articleslist').empty();
$('#articleslist').append(articles);
$('#filterwarning').hide();
}
function switch_category(category) {
if (typeof category != "undefined") {
$("#articleslist").empty();
var filtere... | gfidente/opinoid | webapp/static/js/country.js | JavaScript | agpl-3.0 | 1,017 |
OC.L10N.register(
"templateeditor",
{
"Could not load template" : "امکان بارگذاری قالب وجود ندارد",
"Saved" : "ذخیره شد",
"Reset" : "تنظیم مجدد",
"An error occurred" : "یک خطا رخ داده است",
"Sharing email - public link shares (HTML)" : "ایمیل اشتراک گذاری-لینک عمومی اشتراک گذاری(HTML)",
... | jacklicn/owncloud | apps/templateeditor/l10n/fa.js | JavaScript | agpl-3.0 | 1,324 |
/*
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', 'cs', {
options: 'Nastavení speciálních znaků',
title: 'Výběr speciálního znaku',
toolbar: 'Vložit speciální znak... | astrobin/astrobin | astrobin/static/astrobin/ckeditor/plugins/specialchar/lang/cs.js | JavaScript | agpl-3.0 | 339 |
(function() {
'use strict';
angular.module('columbyApp')
.controller('SearchCtrl', function($log,$rootScope, $scope, SearchSrv) {
/* ---------- SETUP ----------------------------------------------------------------------------- */
$scope.contentLoading = true;
$scope.search = {};
$rootScope.t... | columby/www.columby.com | src/www/app/controllers/search/search.controller.js | JavaScript | agpl-3.0 | 1,953 |
/**
* ISARI Import Scripts File Definitions
* ======================================
*
* Defining the various files to import as well as their line consumers.
*/
module.exports = {
organizations: require('./organizations.js'),
people: require('./people.js'),
activities: require('./activities.js'),
postProc... | SciencesPo/isari | scripts/import/files/index.js | JavaScript | agpl-3.0 | 363 |
define(['sylvester', 'sha1', 'PrairieGeom'], function (Sylvester, Sha1, PrairieGeom) {
var $V = Sylvester.Vector.create;
var Vector = Sylvester.Vector;
var Matrix = Sylvester.Matrix;
/*****************************************************************************/
/** Creates a PrairieDraw object.
@c... | PrairieLearn/PrairieLearn | public/localscripts/calculationQuestion/PrairieDraw.js | JavaScript | agpl-3.0 | 137,277 |
var clover = new Object();
// JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]}
clover.pageData = {"classes":[{"el":162,"id":11268,"methods":[{"el":52,"sc":2,"sl":50},{"el":138,"sc":2,"sl":54},{"el":147,"sc":2,"sl":140},{"el":161,"sc":2,"sl":149}],"name":"ChiSquaredWeighting","sl":46}]}
// JSON:... | cm-is-dog/rapidminer-studio-core | report/html/com/rapidminer/operator/features/weighting/ChiSquaredWeighting.js | JavaScript | agpl-3.0 | 1,169 |
import _ from 'underscore'
import Base from '../graphs/base'
import DayBinner from '../graphs/DayBinner'
import WeekBinner from '../graphs/WeekBinner'
import MonthBinner from '../graphs/MonthBinner'
import ScaleByBins from '../graphs/ScaleByBins'
import helpers from '../helpers'
import I18n from 'i18n!page_views'
// #... | instructure/analytics | app/jsx/graphs/DateAlignedGraph.js | JavaScript | agpl-3.0 | 5,859 |
SavedSearchSelect.$inject = ['session', 'savedSearch'];
export function SavedSearchSelect(session, savedSearch) {
return {
link: function(scope) {
savedSearch.getUserSavedSearches(session.identity).then(function(res) {
scope.searches = res;
});
}
};
}
| lnogues/superdesk-client-core | scripts/superdesk-search/directives/SavedSearchSelect.js | JavaScript | agpl-3.0 | 316 |
OC.L10N.register(
"encryption",
{
"Missing recovery key password" : "Brakujące hasło klucza odzyskiwania",
"Please repeat the recovery key password" : "Proszę powtórz nowe hasło klucza odzyskiwania",
"Repeated recovery key password does not match the provided recovery key password" : "Hasła klucza o... | michaelletzgus/nextcloud-server | apps/encryption/l10n/pl.js | JavaScript | agpl-3.0 | 8,768 |
import { Ability } from "./ability";
import { search } from "./utility/pathfinding";
import { Hex } from "./utility/hex";
import * as arrayUtils from "./utility/arrayUtils";
import { Drop } from "./drops";
import { Effect } from "./effect";
/**
* Creature Class
*
* Creature contains all creatures properties and at... | ShaneWalsh/AncientBeast | src/creature.js | JavaScript | agpl-3.0 | 37,616 |
{"":{"domain":"ckan","lang":"no","plural-forms":"nplurals=2; plural=(n != 1);"},"Cancel":[null,"Avbryt"],"Edit":[null,"Rediger"],"Follow":[null,"Følg"],"Loading...":[null,"Laster..."],"URL":[null,"URL"],"Unfollow":[null,"Ikke følg"],"Upload a file":[null,"Last opp en fil"]} | sergitrilles/geoctheme | ckanext/geoc_theme/public/base/i18n/no.min.js | JavaScript | agpl-3.0 | 276 |
import React from 'react';
import { Card } from 'bm-kit';
import './_pillar.schedule.source.scss';
const friday = [
{
start: '6:00 PM',
name: '📋 Check in begins'
},
{
start: '8:00 PM',
name: '🎤 Opening Ceremonies'
},
{
start: '9:00 PM',
name: '🤝 Team assembly'
},
{
start: '... | BoilerMake/frontend | src/components/Schedule/index.js | JavaScript | agpl-3.0 | 2,859 |
window.addEventListener("DOMContentLoaded", () => {
let watchers = {};
new DOM('@Dialog').forEach((dialog) => {
dialogPolyfill.registerDialog(dialog);
if (dialog.querySelector('Button[Data-Action="Dialog_Submit"]')) {
dialog.addEventListener("keydown", (event) => {
if (event.ctrlKey && event.keyCode == 1... | GenbuProject/SimpleThread | Dialog.js | JavaScript | agpl-3.0 | 13,060 |
function timenow(){
var timenow1 = Date.getHours();
return timenow1;
} | trynothingy/JQSchProj | assets/js/func.js | JavaScript | agpl-3.0 | 78 |
'use strict';
angular.module('cheeperApp')
.controller('AuthCtrl', function ($scope, $http) {
$scope.signin = function() {
$http
.post('http://127.0.0.1:8000/auth-token/', $scope.credentials)
.success(function(data, status, headers, config) {
$scope.token = data.token;
})
... | hnarayanan/cheeper | app/scripts/controllers/auth.js | JavaScript | agpl-3.0 | 430 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... | halochen90/Hexo-Theme-Luna | source/mobile.09c351.js | JavaScript | lgpl-2.1 | 51,975 |
/**
* @file common/js/xml_handler.js
* @brief XE에서 ajax기능을 이용함에 있어 module, act를 잘 사용하기 위한 자바스크립트
**/
// xml handler을 이용하는 user function
var show_waiting_message = true;
/* This work is licensed under Creative Commons GNU LGPL License.
License: http://creativecommons.org/licenses/LGPL/2.1/
Ve... | haegyung/xe-core | common/js/src/xml_handler.js | JavaScript | lgpl-2.1 | 14,624 |
tinymce.addI18n('it',{
"Cut": "Taglia",
"Heading 5": "Intestazione 5",
"Header 2": "Header 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Il tuo browser non supporta l'accesso diretto negli Appunti. Per favore usa i tasti di scelta rapida Ctr... | OpenSlides/tinymce-i18n | langs/it.js | JavaScript | lgpl-2.1 | 7,599 |
// in all regexp "\" must be replaced by "\\"
var datas= {
"default": { // the name of this definition group. It's posisble to have different rules inside the same definition file
"REGEXP": { "before_word": "[^a-zA-Z0-9_]|^" // \\s|\\.|
,"possible_words_letters": "[a-zA-Z0-9_]+"
,"letter_after_word_mu... | cdolivet/EditArea | _devel/old_autocompletion/autocompletion_files/php.js | JavaScript | lgpl-2.1 | 1,656 |
#!/usr/bin/env kjscmd5
function Calculator(ui)
{
// Setup entry functions
var display = ui.findChild('display');
this.display = display;
this.one = function() { display.intValue = display.intValue*10+1; }
this.two = function() { display.intValue = display.intValue*10+2; }
this.three = function() { displa... | KDE/kjsembed | examples/calc/calc.js | JavaScript | lgpl-2.1 | 2,564 |
var namespaces =
[
[ "shyft", "namespaceshyft.html", "namespaceshyft" ]
]; | statkraft/shyft-doc | core/html/namespaces.js | JavaScript | lgpl-3.0 | 78 |
/*
* 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/statistik | web/src/main/webapp/app/shared/treemultiselector/treeMultiSelectorCtrl.js | JavaScript | lgpl-3.0 | 1,547 |
// node/this-3.js
var object = {
id: "xyz",
printId: function() {
console.log('The id is '+
this.id + ' ' +
this.toString());
}
};
// setTimeout(object.printId, 100);
var callback = object.printId;
callback();
| sistemas-web/nodejs-exemplos | node/this-3.js | JavaScript | lgpl-3.0 | 238 |
var complexExample = {
"edges" : [
{
"id" : 0,
"sbo" : 15,
"source" : "Reactome:109796",
"target" : "Reactome:177938"
},
{
"id" : 1,
"sbo" : 15,
"source" : "MAP:Cb15996_CY_Reactome:177938",
"target" : "Reactome:177938"
},... | taye/adeyemitaye-biographer-interactjs | src/test/environment/resources/examples/complex_cp.js | JavaScript | lgpl-3.0 | 146,668 |
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | nzheyuti/Aikau | aikau/src/main/resources/alfresco/search/FacetFilter.js | JavaScript | lgpl-3.0 | 8,856 |
<import resource="classpath:alfresco/site-webscripts/org/alfresco/callutils.js">
if (!json.isNull("wikipage"))
{
var wikipage = String(json.get("wikipage"));
model.pagecontent = getPageText(wikipage);
model.title = wikipage.replace(/_/g, " ");
}
else
{
model.pagecontent = "<h3>" + msg.get("message.nopage")... | loftuxab/community-edition-old | projects/slingshot/config/alfresco/site-webscripts/org/alfresco/modules/wiki/config-wiki.post.json.js | JavaScript | lgpl-3.0 | 1,134 |
var KevoreeEntity = require('./KevoreeEntity');
/**
* AbstractChannel entity
*
* @type {AbstractChannel} extends KevoreeEntity
*/
module.exports = KevoreeEntity.extend({
toString: 'AbstractChannel',
construct: function () {
this.remoteNodes = {};
this.inputs = {};
},
internalSend: function (portP... | barais/kevoree-js | library/kevoree-entities/lib/AbstractChannel.js | JavaScript | lgpl-3.0 | 938 |
js.Offset = function(rawptr) {
this.rawptr = rawptr;
}
js.Offset.prototype = new konoha.Object();
js.Offset.prototype._new = function(rawptr) {
this.rawptr = rawptr;
}
js.Offset.prototype.getTop = function() {
return this.rawptr.top;
}
js.Offset.prototype.getLeft = function() {
return this.rawptr.left;
... | imasahiro/konohascript | package/konoha.compiler.js/runtime/js.jquery.js | JavaScript | lgpl-3.0 | 24,892 |
'use strict';
const chai = require('chai');
const assert = chai.assert;
const sinon = require('sinon');
const responseError = require('../../../server/utils/errors/responseError');
describe('responseError', () => {
let spyCall;
const res = {};
let error = 'An error message';
beforeEach(() => {
res.statu... | kn9ts/project-mulla | test/utils/errors/reponseError.js | JavaScript | lgpl-3.0 | 1,168 |
/*!
* angular-datatables - v0.4.1
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
!function(a,b,c,d){"use strict";function e(a,b){function c(a){function c(a,c){function e(a){var c="T";return h.dom=h.dom?h.dom:b.dom,-1===h.dom.indexOf(c)&&(h.dom=c+h.dom),h.hasTableTools=!0,d.isString(a)&&h.withTableT... | Shohiek/weblims | assets/bower_components/angular-datatables/dist/plugins/tabletools/angular-datatables.tabletools.min.js | JavaScript | lgpl-3.0 | 1,014 |
/**
The GPL License (GPL)
Copyright (c) 2012 Andreas Herz
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 2 of the License, or (at your option) any later version.
This pr... | igemsoftware/SYSU-Software_2014 | server/static/js/graphiti/Connection.js | JavaScript | lgpl-3.0 | 16,767 |
<import resource="classpath:alfresco/site-webscripts/org/alfresco/components/workflow/workflow.lib.js">
var workflowDefinitions = getWorkflowDefinitions(),
filters = [];
if (workflowDefinitions)
{
for (var i = 0, il = workflowDefinitions.length; i < il; i++)
{
filters.push(
{
id: "workflow... | loftuxab/community-edition-old | projects/slingshot/config/alfresco/site-webscripts/org/alfresco/components/workflow/filter/workflow-type.get.js | JavaScript | lgpl-3.0 | 458 |
/********************************************************************
Export
*********************************************************************/
/** @private */
vs.util.extend (exports, {
Animation: Animation,
Trajectory: Trajectory,
Vector1D: ... | vinisketch/VSToolkit | src/ext/fx/Exports.js | JavaScript | lgpl-3.0 | 840 |
'use strict';
var app = angular.module('App', ['App.controller']);
| mirzadelic/django-social-example | django_social_example/django_app/public/js/app/app.js | JavaScript | unlicense | 68 |
var Theme = (function() {
var Theme = function() {
};
return Theme;
})();
module.exports = Theme;
| frostney/dropoff | lib/theme/index.js | JavaScript | unlicense | 119 |
const fs = require('fs');
const electron = require('electron');
const cl = require('node-opencl');
const RUN_GAMELOOP_SYNC = true;
const GAMETICK_CL = true;
const INIT_OPENGL = false;
let canvas; // canvas dom element
let gl; // opengl context
let clCtx; // opencl context
let glProgram; // opengl shader prog... | JohannesBeranek/electron-pixels | renderer.js | JavaScript | unlicense | 11,380 |
/*
@author Zakai Hamilton
@component CoreJson
*/
screens.core.json = function CoreJson(me, { core, storage }) {
me.init = function () {
if (me.platform === "server") {
me.request = require("request");
}
};
me.loadComponent = async function (path, useCache = true) {
... | zakaihamilton/screens | packages/code/core/core_json.js | JavaScript | unlicense | 7,342 |
exports = module.exports = addShims;
function addShims() {
Function.prototype.extend = function(parent) {
var child = this;
var args = Array.prototype.slice.call(arguments, 0);
child.prototype = parent;
child.prototype = new (Function.prototype.bind.apply(parent, args))();
child.prototype.constr... | cabloo/express-elect-seed | api/src/core/core.shims.js | JavaScript | unlicense | 625 |
/*globals document, setTimeout, clearTimeout, Audio, navigator */
var MallardMayhem = MallardMayhem || {};
(function () {
"use strict";
MallardMayhem.Duck = function (options) {
var self = this;
this.currentTimeout = null;
this.domElement = document.createElement('span');
th... | HTMLToronto/MallardMayhem | mm/mm.client.duck.js | JavaScript | unlicense | 7,282 |
#!/usr/bin/env node
var http = require('http');
var moment = require('moment');
var server = undefined;
var threshold = undefined;
var units = undefined;
if (!isValid(process.argv)) {
console.error('invalid arguments, expected hostname threshold and units');
process.exit(-1);
}
var request = http.request('http://... | initcz/thermohome-client-rpi | util/analyzeMissingDates.js | JavaScript | unlicense | 1,860 |
/*******************************************************************************
Add to .git/hooks/pre-commit (and chmod +x) to enable auto-linting/uglifying:
#!/bin/sh
grunt build
if [ $? -ne 0 ]; then
exit 1
fi
git add deflector.min.js
exit 0
*********************************************************************... | Twissi/deflector | Gruntfile.js | JavaScript | unlicense | 1,998 |
avatar = function(x){
this.x = x;
this.y = 0;
this.prevY = 0;
this.velocity_x = 0;
this.velocity_y = 0;
this.img = loadImage("stickman.png");
this.crouch = loadImage("crouch.png");
this.width = 16;
this.standingHeight=64;
this.crouchHeight=44;
this.height = this.standingHeight;
this.collisionCheck = [];
};... | rizsi/szakkor2014 | orak/sa-23/avatar.js | JavaScript | unlicense | 3,166 |
var leaderboard2 = function(data) {
return data.data.sort(function(a,b){return b.points-a.points;});
};
function liCreate(name,points) {
var li = $('<li>'+name+'</li>');
li.append('<span>'+points+'</span>');
}
$(document).ready(function() {
// var sorted = leaderboard2(data);
// for (var i=0; i<sorted.leng... | sherylpeebee/redditClone | own-playground/karma/script.js | JavaScript | unlicense | 1,196 |
/*!
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
/**
* @class Ext.dd.DragTracker
* @extends Ext.util.Observable
* A DragTracker listens for drag events on an Element and fires events at the start and end of the drag,
* as well a... | ahwxl/cms | icms/src/main/webapp/res/extjs/src/dd/DragTracker.js | JavaScript | apache-2.0 | 7,637 |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "status-completed";
const pathData = "M256 0q53 0 99.5 20T437 75t55 81.5 20 99.5-20 99.5-55 81.5-81.5 55-99.5 20-99.5-20T75 437t-55-81.5T0 256t20-99.5T75 75t81.5-55T256 0zM128 256q-14 0-23 9t-9 ... | SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/v5/status-completed.js | JavaScript | apache-2.0 | 673 |
var baseClone = require('./_baseClone');
/**
* This method is like `_.clone` except that it accepts `customizer` which
* is invoked to produce the cloned value. If `customizer` returns `undefined`,
* cloning is handled by the method instead. The `customizer` is invoked with
* up to four arguments; (value [, index|... | ionutbarau/petstore | petstore-app/src/main/resources/static/node_modules/bower/lib/node_modules/lodash/cloneWith.js | JavaScript | apache-2.0 | 1,117 |
Potree.TranslationTool = function(camera) {
THREE.Object3D.call( this );
var scope = this;
this.camera = camera;
this.geometry = new THREE.Geometry();
this.material = new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff } );
this.STATE = {
DEFAULT: 0,
TRANSLATE_X: 1,
TRANSLATE_Y: 2,
TRANSLA... | idunshee/Portfolio | Project/WPC/WPC_Viewer/src/utils/TranslationTool.js | JavaScript | apache-2.0 | 6,194 |
'use strict';
var consoleBaseUrl = window.location.href;
consoleBaseUrl = consoleBaseUrl.substring(0, consoleBaseUrl.indexOf("/console"));
consoleBaseUrl = consoleBaseUrl + "/console";
var configUrl = consoleBaseUrl + "/config";
var auth = {};
var resourceBundle;
var locale = 'en';
var module = angular.module('keycl... | wildfly-security-incubator/keycloak | themes/src/main/resources/theme/base/admin/resources/js/app.js | JavaScript | apache-2.0 | 99,144 |
/* jshint sub: true */
/* global exports: true */
'use strict';
// //////////////////////////////////////////////////////////////////////////////
// / @brief node-request-style HTTP requests
// /
// / @file
// /
// / DISCLAIMER
// /
// / Copyright 2015 triAGENS GmbH, Cologne, Germany
// /
// / Licensed under the Apach... | baslr/ArangoDB | js/common/modules/@arangodb/request.js | JavaScript | apache-2.0 | 5,781 |
/**
* Created by plter on 6/13/16.
*/
(function () {
var files = ["hello.js", "app.js"];
files.forEach(function (file) {
var scriptTag = document.createElement("script");
scriptTag.async = false;
scriptTag.src = file;
document.body.appendChild(scriptTag);
});
}()); | plter/HTML5Course20160612 | 20160613/LoadScript/loader.js | JavaScript | apache-2.0 | 315 |
var interfaceorg_1_1onosproject_1_1grpc_1_1Port_1_1PortStatisticsOrBuilder =
[
[ "getPacketsReceived", "interfaceorg_1_1onosproject_1_1grpc_1_1Port_1_1PortStatisticsOrBuilder.html#a190993a33fa895f9d07145f3a04f5d22", null ],
[ "getPacketsSent", "interfaceorg_1_1onosproject_1_1grpc_1_1Port_1_1PortStatisticsOrBuil... | onosfw/apis | onos/apis/interfaceorg_1_1onosproject_1_1grpc_1_1Port_1_1PortStatisticsOrBuilder.js | JavaScript | apache-2.0 | 512 |
define([
"settings",
"views/tags"
], function(panelSettings, TagsView) {
var PanelFileView = codebox.require("views/panels/file");
var PanelOutlineView = PanelFileView.extend({
className: "cb-panel-outline",
FileView: TagsView
});
return PanelOutlineView;
}); | cethap/cbcompiled | addons/cb.panel.outline/views/panel.js | JavaScript | apache-2.0 | 301 |
define(["Log","FS"],function (Log,FS) {//MODJSL
return function showErrorPos(elem, err) {
var mesg, src, pos;
if (!err) {
close();
return;
}
var row,col;
if (err.isTError) {
mesg=err.mesg;
src=err.src;
pos=err.pos;
row=err.row+1;
col=err.col+1;... | hoge1e3/tonyuedit | war/js/ide/ErrorPos.js | JavaScript | apache-2.0 | 1,670 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014-2020 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 ... | matedo1/pnc | ui/app/common/restclient/restclient.module.js | JavaScript | apache-2.0 | 1,179 |
HB.RadioButtonComponent = Ember.Component.extend({
tagName: 'input',
type: 'radio',
attributeBindings: ['type', 'htmlChecked:checked', 'value', 'name'],
htmlChecked: function(){
return this.get('value') === this.get('checked');
}.property('value', 'checked'),
change: function(){
this.set('checked'... | fractalemagic/hummingbird | app/assets/javascripts/components/radio-button.js | JavaScript | apache-2.0 | 350 |
define([
'./user-settings'
], function (userSettings) {
var context;
var exposed = {
init: function(thisContext){
context = thisContext;
context.sandbox.on('settings.close', userSettings.close);
context.sandbox.on('settings.open', userSettings.open);
... | ozone-development/meridian | app/components/controls/user-settings/user-settings-mediator.js | JavaScript | apache-2.0 | 1,165 |
/*!
* angular-loading-bar v0.8.0
* https://chieffancypants.github.io/angular-loading-bar
* Copyright (c) 2015 Wes Cruver
* License: MIT
*/
/*
* angular-loading-bar
*
* intercepts XHR requests and creates a loading bar.
* Based on the excellent nprogress work by rstacruz (more info in readme)
*
* (c) 2013 We... | rexren/Enterprise-Quality | hephaestus-site/src/main/resources/static/scripts/vendor/angular-loading-bar/angular-loading-bar.js | JavaScript | apache-2.0 | 10,213 |
/*
* testdatefmtrange_wo_SN.js - test the date range formatter object Wolof-Senegal
*
* Copyright © 2021, JEDLSoft
*
* 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... | iLib-js/iLib | js/test/daterange/testdatefmtrange_wo_SN.js | JavaScript | apache-2.0 | 19,135 |
/*
* 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 ... | GoogleForCreators/web-stories-wp | packages/story-editor/src/elements/text/util.js | JavaScript | apache-2.0 | 3,563 |
/**
* @license
* Copyright 2012 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Checkbox field. Checked or not checked.
* @author fraser@google.com (Neil Fraser)
*/
'use strict';
goog.provide('Blockly.FieldCheckbox');
/** @suppress {extraRequire} */
goog.require('Blockly.Events.BlockC... | mark-friedman/blockly | core/field_checkbox.js | JavaScript | apache-2.0 | 6,315 |
/*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* 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 appli... | ONLYOFFICE/CommunityServer | web/studio/ASC.Web.Studio/UserControls/Management/NamingPeopleSettings/js/namingpeoplecontent.js | JavaScript | apache-2.0 | 3,300 |
import React from 'react';
import RadioButton from '../RadioButton';
import { mount } from 'enzyme';
const render = (props) => mount(
<RadioButton
{...props}
className="extra-class"
name="test-name"
value="test-value"
/>
);
describe('RadioButton', () => {
describe('renders as expected', () => {
... | hellobrian/carbon-components-react | components/__tests__/RadioButton-test.js | JavaScript | apache-2.0 | 3,213 |
module.exports = function(fancyRequire) {
fancyRequire('merchant_row');
};
| loop-recur/moo-phone | Resources/views/views.js | JavaScript | apache-2.0 | 77 |
/*
* Copyright (c) 2013 EMBL - European Bioinformatics Institute
* 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 applica... | EBIBioSamples/lodestar | web-ui/src/main/webapp/scripts/namespaces.js | JavaScript | apache-2.0 | 1,394 |
/**
* @author: Alberto Cerqueira
* @email: alberto.cerqueira1990@gmail.com
*/
jQuery.controller = function() {
var controllerClass = function() {
this.init = (function(){
$("#gravar").click(function(){
_self.gravar();
return false;
});
});
this.gravar = (function() {
$("#manterEntidade")... | g6tech/spring-corp-test | project/viewria/WebContent/app/controller/controller.js | JavaScript | apache-2.0 | 1,076 |
var Alloy = require("alloy"), _ = Alloy._, Backbone = Alloy.Backbone;
Alloy.Globals.steps = 0;
Alloy.Globals.capacity = 0;
Alloy.Globals.basketImage = "";
Alloy.Globals.fruitCount = 0;
Alloy.createController("index"); | jhenziz/Fruit-Basket | Resources/app.js | JavaScript | apache-2.0 | 222 |
Ext.namespace("Ext.haode");
Ext.haode.Control = function(args){
Ext.apply(this, args);
this.init();
};
Ext.haode.Control.prototype = {
userName : '',
version : '',
app_name : '',
copyright : '',
viewport : null,
cn : 1,
init : function() {
this.viewport = this.getViewp... | hairlun/customer-visit-web | WebRoot/task/index.js | JavaScript | apache-2.0 | 49,167 |
/*
~ Copyright (c) 2014 George Norman.
~ Licensed under the Apache License, Version 2.0 (the "License");
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ --------------------------------------------------------------
~ Renders <css-lab-about> tags - sharable among all projects.
~ ----------------------------... | georgenorman/css-lab | src/js/tags/cssLabAbout.js | JavaScript | apache-2.0 | 2,522 |
/* eslint-disable local/html-template */
const documentModes = require('./document-modes');
const {AmpState, ampStateKey} = require('./amphtml-helpers');
const {html, joinFragments} = require('./html');
const jsModes = [
{
value: 'default',
description: `Unminified AMP JavaScript is served from the local ser... | jpettitt/amphtml | build-system/server/app-index/settings.js | JavaScript | apache-2.0 | 4,586 |
/**
*
* Web Starter Kit
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | markuz-brasil/runtime-type-system | gulpfile.js | JavaScript | apache-2.0 | 2,272 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga')... | sofiamoral/sofiamoral.github.io | js/custom.js | JavaScript | apache-2.0 | 391 |
//Declare app level module which depends on filters, and services
var SFApplicationAuth = angular.module('SFApplicationAuth.Auth',[]);
SFApplicationAuth.config(
[
'$stateProvider',
'$urlRouterProvider',
function (
$stateProvider,
$urlRouterProvider
) {
console.log("inciando bootstrap auth");
$stateProvid... | chacal88/sb-admin-angular | app/modules/auth/application/bootstrap.js | JavaScript | apache-2.0 | 2,840 |
const spinny = 'div.spinny';
exports.command = function navigateTo (url, expectSpinny = true) {
this.url('data:,'); // https://github.com/nightwatchjs/nightwatch/issues/1724
this.url(url);
if (expectSpinny) {
this.waitForElementVisible(spinny);
this.waitForElementNotVisible(spinny);
}
... | wwitzel3/awx | awx/ui/test/e2e/commands/navigateTo.js | JavaScript | apache-2.0 | 341 |
import React from 'react';
import renderer from 'react-test-renderer';
import VideoQuestion from './VideoQuestion';
jest.mock('expo', () => ({
Video: 'Video'
}));
it('renders without crashing', () => {
const tree = renderer.create(
<VideoQuestion
video={require('../../assets/videos/placeholder.mp4')}
... | cognostics/serlo-abc | src/components/exercises/VideoQuestion.test.js | JavaScript | apache-2.0 | 526 |
"use strict";
const apisObject = {
"type": "object",
"required": false,
"patternProperties": {
"^[_a-z\/][_a-zA-Z0-9\/:]*$": { //pattern to match an api route
"type": "object",
"required": true,
"properties": {
"access": {"type": "boolean", "required": false},
}
}
}
};
const aclRoute = {
"typ... | soajs/soajs.dashboard | schemas/updateScopeAcl.js | JavaScript | apache-2.0 | 1,270 |
//
// https://github.com/Dogfalo/materialize/issues/634#issuecomment-113213629
// and
// https://github.com/noodny/materializecss-amd/blob/master/config.js
//
//
require([
'global',
'initial',
'animation',
'buttons',
'cards',
'carousel',
'character_counter',
'chips',
'collapsible',
'dropdown',
'f... | romeomaryns/ripple | gateway/src/main/resources/static/materialize-css.js | JavaScript | apache-2.0 | 680 |
/*
* 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 ... | GoogleForCreators/web-stories-wp | packages/story-editor/src/components/canvas/pageAttachment/index.js | JavaScript | apache-2.0 | 5,600 |
module.exports = function (config) {
'use strict';
config.set({
basePath: '../',
files: [
// Angular libraries.
'app/assets/lib/angular/angular.js',
'app/assets/lib/angular-ui-router/release/angular-ui-router.js',
'app/assets/lib/angular-bootstr... | markvoelker/refstack | refstack-ui/tests/karma.conf.js | JavaScript | apache-2.0 | 1,354 |
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import { get } from '@ember/object';
export default Route.extend({
access: service(),
catalog: service(),
scope: service(),
beforeModel() {
this._super(...arguments);
return get(this, 'catalog').fetchUnSc... | lvuch/ui | lib/global-admin/addon/multi-cluster-apps/catalog/route.js | JavaScript | apache-2.0 | 1,345 |
import Ember from 'ember';
const DELAY = 100;
export default Ember.Component.extend({
classNameBindings : ['inlineBlock:inline-block','clip:clip'],
tooltipService : Ember.inject.service('tooltip'),
inlineBlock : true,
clip : false,
model : null,
size : 'default',
... | nrvale0/ui | app/components/tooltip-element/component.js | JavaScript | apache-2.0 | 2,144 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/random/streams/negative-binomial/lib/main.js | JavaScript | apache-2.0 | 9,730 |
function f1(a) {
try {
throw "x";
} catch (arguments) {
console.log(arguments);
}
}
f1(3);
| csgordon/SJS | jscomp/tests/scope7.js | JavaScript | apache-2.0 | 123 |
// JavaScript Document
var flag1=true;
var flag2=true;
$(function () {
/*********************/
$.ajax({
type : 'POST',
dataType : 'json',
url : 'baseNeiName.do',
async : true,
cache : false,
error : function(request) {
bootbox.alert({
message : "请求异常",
size : 's... | pange123/PB_Management | 后台页面/WebRoot/js/myNeed/Repairpply.js | JavaScript | apache-2.0 | 3,500 |
/*
* Copyright 2019 The Project Oak Authors
*
* 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 o... | project-oak/oak | chrome_extension/background.js | JavaScript | apache-2.0 | 2,181 |
// lightbox_plus.js
// == written by Takuya Otani <takuya.otani@gmail.com> ===
// == Copyright (C) 2006 SimpleBoxes/SerendipityNZ Ltd. ==
/*
Copyright (C) 2006 Takuya Otani/SimpleBoxes - http://serennz.cool.ne.jp/sb/
Copyright (C) 2006 SerendipityNZ - http://serennz.cool.ne.jp/snz/
This script is licensed under th... | yusuke/samurai | site/lightbox/lightbox_plus.js | JavaScript | apache-2.0 | 29,978 |
// svgmap.js 0.2.0
//
// Copyright (c) 2014 jalal @ gnomedia
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | jalal/svgmap | js/svgmap.js | JavaScript | apache-2.0 | 3,661 |
(function () {
'use strict';
app.service('reportService', reportService);
function reportService($http, $window, $interval, timeAgo, restCall, queryService, dashboardFactory, ngAuthSettings, reportServiceUrl) {
var populateReport = function (report, url) {
function successCallback(response) {
if (r... | NerdCats/T-Rex | app/services/reportService.js | JavaScript | apache-2.0 | 3,588 |
var array = trace ( new Array());
var m = trace ( 0 );
var n = trace ( 3 );
var o = trace ( 5 );
var p = trace ( 7 );
array[0] = m;
array[1] = n;
array[2] = o;
array[3] = p;
var result = new Array();
// FOR-IN Schleife
for ( i in array ) {
result.push(i);
x = i;
z = 7;
}
var a = result;
va... | keil/TbDA | test/dependency_state/rule_forin.js | JavaScript | apache-2.0 | 360 |
'use strict'
/*eslint-env node */
exports.config = {
specs: [
'test/e2e/**/*.js'
],
baseUrl: 'http://localhost:9000',
chromeOnly: true
}
| musamusa/move | protractor.conf.js | JavaScript | apache-2.0 | 150 |
/**
* @license AngularJS v1.3.0-build.2690+sha.be7c02c
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/**
* @ngdoc module
* @name ngCookies
* @description
*
* # ngCookies
*
* The `ngCookies` module provides a convenient wrapper for re... | yawo/pepeto | code/client/js/node_modules/bower_components/angular-cookies/angular-cookies.js | JavaScript | apache-2.0 | 5,642 |