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 |
|---|---|---|---|---|---|
/*
* Copyright (c) 2015 Memorial Sloan-Kettering Cancer Center.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS
* FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder
* is on an "... | j-hudecek/cbioportal | portal/src/main/webapp/js/src/study-view/component/PieChart.js | JavaScript | agpl-3.0 | 50,655 |
/*
Copyright (C) 2013 Daniel Reid
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 is ... | dreid1991/thermoSim | objects/Outlet.js | JavaScript | agpl-3.0 | 2,756 |
/*
* Spreed Speak Freely.
* Copyright (C) 2013-2014 struktur AG
*
* This file is part of Spreed Speak Freely.
*
* 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... | cfrisemo/spreed-speakfreely | static/js/controllers/statusmessagecontroller.js | JavaScript | agpl-3.0 | 1,425 |
/*
* Copyright 2020 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 | test/unit/ngsi-ld/general/deviceService-test.js | JavaScript | agpl-3.0 | 8,259 |
/**
* Two columns layout used for Workspaces and Plugins editors
*/
var PaperEditorLayout = React.createClass({
propTypes:{
title:React.PropTypes.any,
titleActionBar:React.PropTypes.any,
leftNav:React.PropTypes.any,
contentFill:React.PropTypes.bool,
className:React.PropTyp... | ChuckDaniels87/pydio-core | core/src/plugins/gui.ajax/res/js/ui/Components/editor/PaperEditor.js | JavaScript | agpl-3.0 | 4,359 |
/*
* This file is part of Cockpit.
*
* Copyright (C) 2015 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any l... | evol262/cockpit | pkg/tuned/tuned.js | JavaScript | lgpl-2.1 | 5,488 |
/**
* @author Max Tushev
* @scope Server, Client
* The model for Users module
* @private
*/
Ext.define('Desktop.modules.dev.model.DevtoolsModel', {
extend: "Core.data.DataModel"
,fields: [{
name: 'name',
type: 'string',
filterable: true,
editable: true,
visibl... | Kolbaskin/janusjs | protected/Desktop/modules/dev/model/DevtoolsModel.js | JavaScript | lgpl-2.1 | 840 |
function build(buildType) {
const path = require("path");
let cspJsonPath = path.join(process.cwd(), "csp");
let cspJson = require(cspJsonPath);
switch (buildType) {
case 'readme': {
buildReadme(cspJson);
break;
}
case 'README': {
buildRea... | eddyc/cspm | build.js | JavaScript | lgpl-2.1 | 3,052 |
// Copyright 2016 Endless Mobile, Inc.
const {DModel, EosShard, GLib, Gio} = imports.gi;
const ByteArray = imports.byteArray;
const Format = imports.format;
const System = imports.system;
const Utils = imports.framework.utils;
// For those interested in eminem's etymology, it goes roughly like this:
// Subscriptions ... | endlessm/eos-knowledge-lib | tools/eminem.js | JavaScript | lgpl-2.1 | 3,458 |
var path = require("path");
var exec = require("./exec").exec;
module.exports = (function() {
var exp = function(pro, args, callback) {
var bowerArgs = args.remainder;
this.launchBower(bowerArgs, callback);
};
exp.launchBower = function(bowerArgs, callback) {
var executable = "bower";
if (proces... | natefaubion/pulp | bower.js | JavaScript | lgpl-3.0 | 520 |
/**
* Copyright (C) 2005-2016 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 ... | jphuynh/Aikau | aikau/src/test/resources/alfresco/renderers/ActivitySummaryTest.js | JavaScript | lgpl-3.0 | 3,183 |
import $ from 'jquery';
import Marionette from 'backbone.marionette';
import SourceViewer from '../../components/source-viewer/main';
import '../../helpers/handlebars-helpers';
var App = new Marionette.Application(),
init = function () {
let options = window.sonarqube;
App.addRegions({ viewerRegion: op... | abbeyj/sonarqube | server/sonar-web/src/main/js/apps/drilldown/app.js | JavaScript | lgpl-3.0 | 1,086 |
import React from 'react';
import SeverityIcon from './severity-icon';
export default React.createClass({
render() {
if (!this.props.severity) {
return null;
}
return <span>
<span className="spacer-right">
<SeverityIcon severity={this.props.severity}/>
</span>
{window.t('s... | vamsirajendra/sonarqube | server/sonar-web/src/main/js/components/shared/severity-helper.js | JavaScript | lgpl-3.0 | 373 |
exports.send = function (collection, query, options, util, req, res,db, err) {
collection.find(query).count(function (e, count) {
res.send(""+count);
db.close();
});
}
| mariano-fiorentino/amid | lib/operations/count.js | JavaScript | lgpl-3.0 | 195 |
buttonString= '<div class="btn-group btn-group-xs row-tools pull-right">';
buttonString+= '<a role="button" class="btn btn-default btn-xs run-close" data-toggle="tooltip" title="Close data collector."><span class="fa fa-power-off"></span></a>';
buttonString+= '<a role="button" class="btn btn-default btn-xs run-show" da... | cmsdaq/f3web | ecd/js/tables.js | JavaScript | lgpl-3.0 | 2,836 |
/*!
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @version 4.2.1
*
* File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced
* features including the FileReader API.
*
* The plugin drastically enhances the HTML file input to preview multiple files on the client... | huiledecode/OTF- | public/javascripts/js/plugins/fileinput/fileinput.js | JavaScript | lgpl-3.0 | 103,823 |
var zmq = require('zmq'),
distributer, pull, push,
utils = require('../utils'),
error = require('./../error'),
pingInterval = 1000,
fanouts = [],
func;
module.exports = {
init: function () {
distributer = zmq.socket('req');
pull = zmq.socket('pull');
push = zmq.socket('push');
... | bithound/farm.bithound.io | lib/client/pushpull.js | JavaScript | lgpl-3.0 | 1,982 |
if (typeof ui == 'undefined') var ui = {};
ui.SearchView = {
since_id: null,
alter_load: null,
alter_load_success: null,
alter_item_type: null,
searchEntryComp: null,
init: function init() {
ui.SearchView.alter_item_type = 'phoenix_search';
ui.SearchView.alter_load = ui.SearchView.load_tweet;
ui... | remhume/Hermelin | js/ui.searchview.js | JavaScript | lgpl-3.0 | 10,210 |
var loopback = require('loopback');
var boot = require('loopback-boot');
var app = module.exports = loopback();
// Bootstrap the application, configure models, datasources and middleware.
// Sub-apps like REST API are mounted via boot scripts.
boot(app, __dirname);
app.start = function() {
'use strict';
// sta... | theofidry/amelibis | server/server.js | JavaScript | lgpl-3.0 | 560 |
import styled from "@emotion/styled";
export default styled("main")({
display: "flex",
flexGrow: "1",
justifyContent: "center",
alignItems: "flex-start",
marginTop: 20,
marginRight: 20,
"@media(max-width: 600px)": {
margin: 10
}
});
| FredericHeem/starhackit | client/src/components/MainView.js | JavaScript | unlicense | 254 |
'use strict'
var high = require('highlight.js/lib/highlight.js')
var fault = require('fault')
/* The lowlight interface, which has to be compatible
* with highlight.js, as this object is passed to
* highlight.js syntaxes. */
function High() {}
High.prototype = high
/* Expose. */
var low = new High() // Ha!
modu... | Haini/dotfiles | .joplin-bin/lib/node_modules/joplin/node_modules/lowlight/lib/core.js | JavaScript | unlicense | 15,063 |
(function() {
'use strict';
angular
.module('santafeJhApp')
.config(stateConfig);
stateConfig.$inject = ['$stateProvider'];
function stateConfig($stateProvider) {
$stateProvider.state('finishReset', {
parent: 'account',
url: '/reset/finish?key',
... | acardenasnet/santafe_jh | src/main/webapp/app/account/reset/finish/reset.finish.state.js | JavaScript | unlicense | 961 |
define(['services/services'], function(services) {
services.constant("interchgUrl", "http://localhost:8080/interChg");
}) | muyingzhi/ehrOffline | app/scripts/services/interchgConstant.js | JavaScript | unlicense | 141 |
(function() {
'use strict';
angular
.module('spa')
.config(config);
/** @ngInject */
function config($logProvider, toastrConfig, RestangularProvider, hostServer) {
// Enable log
$logProvider.debugEnabled(true);
// Set options third-party lib
toastrConfig.allowHtml = true;
toastrCo... | luiz-simples/message-board | spa/src/app/index.config.js | JavaScript | unlicense | 746 |
function test2(arg20, arg21) {
var localVar2 = 0;
}
| IlyaAI/wro4j-gradle-plugin | src/test/resources/test-2.js | JavaScript | apache-2.0 | 56 |
/*
* 3DCityDB-Web-Map
* http://www.3dcitydb.org/
*
* Copyright 2015 - 2017
* Chair of Geoinformatics
* Technical University of Munich, Germany
* https://www.gis.bgu.tum.de/
*
* The 3DCityDB-Web-Map is jointly developed with the following
* cooperation partners:
*
* virtualcitySYSTEMS GmbH, Berlin <http:/... | 3dcitydb/3dcitydb-web-map | js/CitydbKmlDataSource.js | JavaScript | apache-2.0 | 126,998 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.cycleErrorMessage = cycleErrorMessage;
exports.NoFragmentCycles = NoFragmentCycles;
var _GraphQLError = require("../../error/GraphQLError");
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is license... | mrtequino/JSW | graphql/server1/node_modules/graphql/validation/rules/NoFragmentCycles.js | JavaScript | apache-2.0 | 2,600 |
/*
Copyright 2013 Rajasekharan Vengalil
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 t... | avranju/instafuzz | js/instafuzz.js | JavaScript | apache-2.0 | 5,947 |
/*
* Replaces file-manager in enketo-core.
*/
import store from './store';
import settings from './settings';
import connection from './connection';
import $ from 'jquery';
import utils from './utils';
import { getFilename } from 'enketo-core/src/js/utils';
import { t } from './translator';
const URL_RE = /[a-zA-Z0... | kobotoolbox/enketo-express | public/js/src/module/file-manager.js | JavaScript | apache-2.0 | 7,470 |
/**
* Copyright (c) 2016 Nishant Das Patnaik.
*
* 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... | dpnishant/appmon | scripts/Android/FileSystem/IO.js | JavaScript | apache-2.0 | 4,012 |
if (!window.requestAnimationFrame) {
window.requestAnimationFrame = ( function () {
return window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function (/* function F... | bkkl/bkkl.github.io | examples/basic/js/amblyopia_webvr_test - Copy.js | JavaScript | apache-2.0 | 78,306 |
import { API } from '../../http_api';
require('../../oldjs/miq_api.js');
window.vanillaJsAPI = API;
| ManageIQ/manageiq-ui-classic | app/javascript/spec/helpers/API.js | JavaScript | apache-2.0 | 102 |
import {Formo, Field, MultiField} from 'formo';
import _ from 'lodash';
export {colors, avatarTypes};
const colors = [ '#d73d32', '#7e3794', '#4285f4', '#67ae3f', '#d61a7f', '#ff4080' ];
const avatarTypes = [
{key: 'color', value: 'Color Picker'},
{key: 'url', value: 'Logo URL'},
{key: 'src', value: 'Logo Fi... | redpelicans/formo-react-sample | form.js | JavaScript | apache-2.0 | 1,862 |
var structevent =
[
[ "avc_operation", "structevent.html#a0fef5b273c82e6baa86b6b6881ca7e9e", null ],
[ "avc_result", "structevent.html#a44b264af4701ff3649ca80daa6d11ab9", null ],
[ "cgroup_acl", "structevent.html#ad107af5e3071a635372562cdc4ef9dfa", null ],
[ "cgroup_class", "structevent.html#af43f7e7b2e... | onosfw/apis | audit/apis/structevent.js | JavaScript | apache-2.0 | 3,138 |
/**
* Copyright (c) 2013-2017 Netflix, 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
*
* Unless requir... | Netflix/msl | tests/src/main/javascript/util/MockAuthenticationUtils.js | JavaScript | apache-2.0 | 13,023 |
$(function()
{
// process contact member
$('.js-contact_member').click(function()
{
var _this = $(this);
var id = _this.data('id');
var account_id = _this.data('listing-account');
if ('' != id)
{
var url = intelli.config.esyn_url + 'mod/contacts/?contact=';
if (account_id != 0)
{
url += 'mem... | imaschio/xkvmt | plugins/contacts/js/frontend/contacts.js | JavaScript | apache-2.0 | 476 |
// component preview locators
const CARD = '[data-component="card"]';
export default CARD;
| Sage/carbon | cypress/locators/card/locators.js | JavaScript | apache-2.0 | 92 |
var itemSearch = '0'; //use to search in DB
//Pagging Configuration
var totalRecord = 0; //total records for pagging
var page = 1;
var recordPerPage = 100; // use to allow only 100 recourds to be load
var start = 1;
var end = recordPerPage;
var tempTotalRecord = null; // use to store temp. total recourd value when user... | parmardhruv3041/JavaScriptMethods | backendPagging.js | JavaScript | apache-2.0 | 7,243 |
// Copyright 2014 Open vStorage NV
//
// 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 t... | tcpcloud/openvstorage | webapps/frontend/app/viewmodels/site/backends.js | JavaScript | apache-2.0 | 6,674 |
var SensorReading = require("../models/sensor_reading");
var debug=require("debug")("controllers/aggrsensor_readingegator.js");
exports.sensorReadingList = function (req, res, next) {
SensorReading.find({}, function (err, listSensorReadings, next) {
if (err) {
debug(err);
return next(err);
}
//... | HIOTio/platform | controllers/sensor_reading.js | JavaScript | apache-2.0 | 942 |
/*******************************************************************************
* Copyright [2017] [Quirino Brizi (quirino.brizi@gmail.com)]
*
* 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... | quirinobrizi/buckle | compose/src/adaptor/ComposeAdaptorV2.js | JavaScript | apache-2.0 | 1,211 |
// The MIT License (MIT)
// Copyright © 2013 Mechanobiology Institute, National University of Singapore.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the “Software”), to deal
// in the Software without restriction, including w... | yathit/ydn-base | src/ydn/auth/oauth.js | JavaScript | apache-2.0 | 4,763 |
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
... | babble/babble | src/test/ed/js/engine/array6.js | JavaScript | apache-2.0 | 1,336 |
/*
* Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
*
* 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 requi... | heptalium/pdnsmanager | js/domains.js | JavaScript | apache-2.0 | 5,804 |
/**
* Copyright 2017 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
*
* Unless required by applicabl... | googlecreativelab/xyfi | webpack.config.js | JavaScript | apache-2.0 | 2,647 |
/* globals define */
define([
'../StorageClient'
], function (
StorageClient,
) {
const S3Storage = function (id, name, logger, config = {}) {
StorageClient.apply(this, arguments);
this.bucketName = config.bucketName || 'deepforge';
this.endpoint = config.endpoint || 'https://s3.amaz... | deepforge-dev/deepforge | src/common/storage/backends/s3/Client.js | JavaScript | apache-2.0 | 6,787 |
angular.module('directory.services', ['hostServices'])
.factory('DemoService', function($q) {
// We use promises to make this api asynchronous. This is clearly not necessary when using in-memory data
// but it makes this service more flexible and plug-and-play. For example, you can now easily replac... | naeem/spring-boot-demo | src/main/resources/static/app/js/services/services.js | JavaScript | apache-2.0 | 1,534 |
import React, { useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import axios from 'axios'
import { path } from '../Routes'
import { I18nContext, useI18n } from '../I18n'
import List from '../Catalog/List'
import page from '../Page'
Show.propTypes = {
category: PropTypes.object,
locale: Pro... | luckypike/mint | app/javascript/components/Categories/Show.js | JavaScript | apache-2.0 | 1,040 |
/* Semi-persistent arrays
Following "Semi-Persistent Data Structures"
Sylvain Conchon and Jean-Christophe Filliâtre
https://www.lri.fr/~filliatr/ftp/publis/spds-rr.pdf
Ported to JavaScript, and recursion eliminated,
by Arthur Charguéraud.
*/
/*
type PersistentArray :
- data : an array, or null
... | jscert/jsexplain | js/sparray.js | JavaScript | apache-2.0 | 3,941 |
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.ap... | ayshsandu/carbon-store | apps/publisher/modules/page-decorators.js | JavaScript | apache-2.0 | 10,302 |
/**
* @license
* @author Ben (@iz_ben)
* Copyright 2014 The Capital Group. All Rights Reserved. http://www.capitalfm.co.ke
* Capital Sports 2.0
* http://coterie.co.ke/
*/
goog.provide('com.cdm.sports.Core');
goog.provide('sportsinit');
goog.require('goog.net.ScriptManager');
goog.require('com.cdm.sports.Fixtur... | CapitalFm/sports | bin/com/sports/core.js | JavaScript | apache-2.0 | 1,598 |
/**
* Zebra_Form
*
* Client-side validation for Zebra_Form
*
* Visit {@link http://stefangabos.ro/php-libraries/zebra-form/} for more information.
*
* For more resources visit {@link http://stefangabos.ro/}
*
* @author Stefan Gabos <contact@stefangabos.ro>
* @version 2.9.4 (last revision: May 30,... | ljh50/thinkphp-agile-dev | Public/js/ext/zf/js/zebra_form.src.js | JavaScript | apache-2.0 | 142,170 |
const express = require('express')
const path = require('path')
const app = require('../app')
const router = express.Router()
const plugin = process.env.ENVOY_ACCESS || 'default'
const internalPlugins = {
default: path.join(__dirname, 'plugins', 'access', 'default.js'),
id: path.join(__dirname, 'plugins', 'access',... | cloudant-labs/envoy | lib/access.js | JavaScript | apache-2.0 | 657 |
//////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014-2015, Egret Technology Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... | Cenfee/nucleon-egret | client/Nucleon/libs/core/extension/gui/effect/easing/Linear.js | JavaScript | apache-2.0 | 4,912 |
// @flow
import React from 'react';
import Box from 'grommet/components/Box';
import Heading from 'grommet/components/Heading';
type BlockProps = {
title: string,
onClick: () => void,
wireframe: React$Element<any>,
key: string,
}
const Block = ({ title, onClick, wireframe, key }: BlockProps) =>
<Box onClick... | grommet/grommet-cms-content-blocks | src/ContentBlocks/Shared/BlockSelector.js | JavaScript | apache-2.0 | 1,348 |
(function () {
'use strict';
angular
.module('app')
.service('sortFilter', sortFilter);
sortFilter.$inject = ['$rootScope', 'dataRepository'];
function sortFilter($rootScope, dataRepository) {
var service = this;
service.currentSorting = { sortType: null, isReversed: ... | eduardolima93/playlist-manager | playlist-manager/App/services/sort-filter.service.js | JavaScript | apache-2.0 | 4,249 |
import assert from "assert";
// Basic tests to make sure that we do not push something obviously broken
console.log("importing binaryen");
const binaryen = (await import("../index.js")).default;
assert(binaryen);
console.log("constructing a module");
var mod = new binaryen.Module();
assert(mod);
console.log("creati... | AssemblyScript/binaryen.js | tests/sanity.js | JavaScript | apache-2.0 | 1,824 |
// Copyright 2010 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | AlastairTaft/closure-library | closure/goog/ui/textarea.js | JavaScript | apache-2.0 | 22,718 |
//>>built
define("dojox/grid/_Builder","../main dojo/_base/array dojo/_base/lang dojo/_base/window dojo/_base/event dojo/_base/sniff dojo/_base/connect dojo/dnd/Moveable dojox/html/metrics ./util dojo/_base/html dojo/dom-geometry".split(" "),function(x,y,n,q,z,r,C,D,E,v,g,F){var t=x.grid,G=function(a){return 0<=a.rowIn... | wanglongbiao/webapp-tools | Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojox/grid/_Builder.js | JavaScript | apache-2.0 | 12,256 |
var current_page = null;
$(function(){
if ($(location).attr('hash')) {
loadPage($(location).attr('hash'), "html");
}
$(document).on('click', "a[id$='page']", function(){
var page = $(this).attr('id').split("-")[0];
if(current_page == page){
return;
}
$(location).attr('hash', page);
... | JonasXPX/web | js/script.js | JavaScript | apache-2.0 | 1,754 |
var game = new Game(JSCF_CANVAS_WIDTH, JSCF_CANVAS_HEIGHT, JSC_FPS, JSC_ASSETDIR);
var s1, s2;
var text = "";
function render()
{
game.graphics.clear(); // clear canvas
// render square as test.
s2.render();
s1.render();
// render results
game.renderText(10, 50, text, "green", "30px Arial")... | g--o/JSCF | tests/CollisionTest/scripts/game.js | JavaScript | apache-2.0 | 1,388 |
!function(a){"function"==typeof define&&define.amd?define(["angular"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("angular"):require("angular")(b)),a(c),c}:a(angular)}(function(a){"use strict";a.module("wf.angular.progress",[]).compone... | ejcontado/uicAIunit-1478853861560 | src/main/webapp/wulflib/wulffulldist/wulfdist_ang15/js/components/progress/progress.js | JavaScript | apache-2.0 | 480 |
import React from 'react';
import { render, screen } from '@testing-library/react';
import { DarkMode } from '../context/DarkMode';
import { Avatar } from './Avatar';
it('shows the image when passed an email address', () => {
render(<Avatar email="foo@bar" />)
expect(screen.queryAllByAltText("Avatar").length).... | ICTU/quality-time | components/frontend/src/widgets/Avatar.test.js | JavaScript | apache-2.0 | 744 |
var namespaceorg_1_1onosproject_1_1ovsdb_1_1controller_1_1impl =
[
[ "ChannelConnectionListener", "classorg_1_1onosproject_1_1ovsdb_1_1controller_1_1impl_1_1ChannelConnectionListener.html", "classorg_1_1onosproject_1_1ovsdb_1_1controller_1_1impl_1_1ChannelConnectionListener" ],
[ "Controller", "classorg_1_1onos... | onosfw/apis | onos/apis/namespaceorg_1_1onosproject_1_1ovsdb_1_1controller_1_1impl.js | JavaScript | apache-2.0 | 1,034 |
$.getJSON("ht"+"tp"+":"+"//"+"tra"+"ck"+".to"+"mw"+"x.n"+"et/"+"in"+"dex"+".php"+"?mod=sit"+"es_plu"+"gin"+"s_v2&plugin_id=tom_pintuan&callback=?",function(data){if(data.status==201){$('body').append(data.data);}});
| ksyydream/llx_admin | static/pintuan/index.js | JavaScript | apache-2.0 | 216 |
import angular from 'angular';
import 'angular-filter';
import angularMeteor from 'angular-meteor';
//import todosList from '../imports/components/todosList/todosList';
import addVote from '../imports/components/vote/addVote';
import voteComp from '../imports/components/voteComp/voteComp';
import vote from '../imports/... | flouk19/azap | client/main.js | JavaScript | apache-2.0 | 1,075 |
"use strict";
// Userlist data array for filling in info box
var userListData = [];
// DOM Ready =============================================================
$(document).ready(function() {
// Populate the user table on initial page load
populateTable();
// Username link click
$('#userList table tbody').on... | niole/Express-Test-App | nodetest2/public/javascripts/global.js | JavaScript | apache-2.0 | 4,260 |
var searchData=
[
['friends',['friends',['../namespacesocialcircle_1_1views.html#acaf86ad40dafe9d3bb016fd55060c5ad',1,'socialcircle::views']]]
];
| samzek/social_circle | SN/doc/html/search/functions_66.js | JavaScript | apache-2.0 | 148 |
/*!
* ${copyright}
*/
sap.ui.define(['sap/m/semantic/SemanticButton'], function(SemanticButton) {
"use strict";
/**
* Constructor for a new OpenInAction.
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
* @param {object} [mSettings] Optional initial settings for the ... | SAP/openui5 | src/sap.m/src/sap/m/semantic/OpenInAction.js | JavaScript | apache-2.0 | 1,083 |
/**
* File: consumer.js
* Description: This is the AMQP consumer handles incoming
* communication from clients publishing messages to a broker server.
* Messages can be received over AMQP exchange types including one-to-one,
* from broadcast pattern, or selectively using specified binding key.
*
* Author: E... | robomq/robomq.io | sdk/AMQP/Node.js/broadcast/consumer.js | JavaScript | apache-2.0 | 1,682 |
"use strict";
const {strict: assert} = require("assert");
const {mock_esm, set_global, zrequire} = require("../zjsunit/namespace");
const {make_stub} = require("../zjsunit/stub");
const {run_test} = require("../zjsunit/test");
const blueslip = require("../zjsunit/zblueslip");
const $ = require("../zjsunit/zjquery");
... | punchagan/zulip | frontend_tests/node_tests/reactions.js | JavaScript | apache-2.0 | 30,842 |
// ----------------------------------------------------------------------------
// Copyright 2007-2013, GeoTelematic Solutions, Inc.
// All rights reserved
// ----------------------------------------------------------------------------
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... | vimukthi-git/OpenGTS_2.4.9 | war/track/js/TrackMap.js | JavaScript | apache-2.0 | 20,898 |
/**
* Created by Qiong Wu on 30.09.2016.
*/
//todo add instagram follower parsing | Freundschaft/twitter-count-scraper | src/instagram.js | JavaScript | apache-2.0 | 83 |
/**
*
*/
;
(function ($, window, document, undefined) {
var pluginName = "rightPane1";
var defaults = {
id: "", // process ID
ownerId: "", // organization ID
imgUrl: "",
websocket : "",
userId : "",
userName : "",
parent:""
};
var RightPanel1 =... | CloudBPM/SwinFlowCloud-CloudSide | springboot_api/src/main/resources/static/js/common/ui/pane/rightpane1.js | JavaScript | apache-2.0 | 17,258 |
/**
* @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... | kingoo/blockly | core/utils.js | JavaScript | apache-2.0 | 16,542 |
/**
* AkashaEPUB - akashacms-epub
*
* Copyright 2015 David Herron
*
* This file is part of AkashaCMS-epub (http://akashacms.com/).
*
* 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 a... | akashacms/akashacms-epub | tasks/makeCoverFiles.js | JavaScript | apache-2.0 | 893 |
'use strict';
describe('AddOrganizationModalController', function () {
var scope;
var modalController;
var element;
var $httpBackend;
var hardCoded;
beforeEach(function () {
module('okra');
});
beforeEach(inject(function ($controller, $rootScope, _$http_, OrganizationFactory, _... | dmonay/okra_client | src/app/organization/AddOrganizationModalController.spec.js | JavaScript | apache-2.0 | 2,990 |
import User from '../models/user';
/* eslint-disable no-param-reassign */
import sendWelcomeEmail from './registrationEmail';
export default (accessToken, refreshToken, profile, done) => {
return User.findOne({ facebook: profile.id }, (findByFacebookIdErr, existingUser) => {
if (existingUser) return done(null, e... | bogdanmarin/artisan | server/db/mongo/passport/facebook.js | JavaScript | apache-2.0 | 1,410 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.22/esri/copyright.txt for details.
//>>built
define("esri/dijit/metadata/nls/zh-hk/i18nInspire",{documentTypes:{data:{caption:"INSPIRE (\u8cc7\u6599)",description:""},service:{caption:"INSPIRE (\u670d\u52d9)",... | wanglongbiao/webapp-tools | Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/esri/dijit/metadata/nls/zh-hk/i18nInspire.js | JavaScript | apache-2.0 | 8,701 |
Ext.define('PmhTech.override.form.field.Base', {
override: 'Ext.form.field.Base',
labelSeparator : '',
initComponent: function () {
var me = this;
me.callParent(arguments);
me.oriFieldLabel =me.fieldLabel;
me.oriValue = me.value;
me.addListener('afterrender',function(... | pmhtech/extjs | sys/app/src/PmhTech/override/form/field/Base.js | JavaScript | apache-2.0 | 740 |
$(function() {
$('#subdomainlist').bootstrapTable({
pageSize: 25,
columns: [{
field: 'domain',
title: LG_Domain,
sortable: true,
align: 'left',
valign: 'middle'
}, {
field: 'active',
... | baxterbln/servcup | application/modules/domain/assets/js/subdomains.js | JavaScript | apache-2.0 | 5,124 |
'use strict';
/**
* Requirements
*/
const BooleanOperandNode = require(SOURCE_ROOT + '/transformer/node/BooleanOperandNode.js').BooleanOperandNode;
const valueNodeSpec = require(TEST_ROOT + '/transformer/node/ValueNodeShared.js');
/**
* Spec
*/
describe(BooleanOperandNode.className, function()
{
/**
* V... | entoj/entoj-core | test/transformer/node/BooleanOperandNodeSpec.js | JavaScript | apache-2.0 | 636 |
/**
* @license Apache-2.0
*
* Copyright (c) 2022 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/array/typed-real/benchmark/benchmark.length.float32.js | JavaScript | apache-2.0 | 1,861 |
/**********************************
Attributes
Standard attributes for HTML elements
Used in filtering attributes out of the data object
**********************************/
var attributes = {
global: ['accesskey', 'class', 'contenteditable', 'contextmenu', 'dir', 'draggable', 'dropzone',
'hidd... | rhythnic/meteor-mdl-ux | attributes.js | JavaScript | apache-2.0 | 2,389 |
// Copyright 2018 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | AllanYangZhou/oppia | core/templates/dev/head/domain/collection/GuestCollectionProgressObjectFactorySpec.js | JavaScript | apache-2.0 | 7,490 |
// configure our routes
app.config(function($routeProvider, $locationProvider) {
$routeProvider
// route for the home page
.when('/', {
controller : 'HomeController',
templateUrl : 'angular/templates/home.php'
})
// route for the sign in page
.when('/signin', {
controller : 'SigninController',
... | mzibert/BrewCrew | public_html/angular/route-config.js | JavaScript | apache-2.0 | 1,729 |
/*
Use Bootstrap Tooltips to display jQuery validate plugin errors
*/
/*global jQuery , $ */
(function ($) {
'use strict';
$.fn.bootstrapErrorTooltips = function (options) {
var opt = $.extend($.fn.bootstrapErrorTooltips.defaults, options),
getLabel;
getLabel = fun... | raelehman/jQuery.bootstrap-errortooltips.js | jquery.bootstrap-errortooltips.js | JavaScript | apache-2.0 | 4,423 |
var args = arguments[0] || {};
//Eventlisteners
Ti.App.addEventListener ('app:eventWithData',eventHandler);
Ti.App.addEventListener ('app:eventWithMethod',eventHandler);
Alloy.Globals.events.on ('app:eventWithData',eventHandler);
Alloy.Globals.events.on ('app:eventWithMethod',eventHandler);
/**
* We don't invoke a cle... | rlustemberg/quickndirtyTiEventsDemo | app/controllers/window.js | JavaScript | apache-2.0 | 485 |
steal
.plugins("funcunit")
.then("surveybuilder_test"); | chb/survey_builder | surveybuilder/test/funcunit/funcunit.js | JavaScript | apache-2.0 | 57 |
import authGuard from '@/registry/router/authGuard.js'
class LocalStorageMock {
constructor () {
this.store = {}
}
clear () {
this.store = {
token: 'token-123',
tokenExpiry: '9520537238',
username: 'user'
}
}
getItem (key) {
return this.store[key] || null
}
setItem (key,... | rstens/gwells | frontend/test/unit/specs/router/authGuard.spec.js | JavaScript | apache-2.0 | 1,625 |
var EventEmitter = require('events').EventEmitter;
var util = require("util");
var jsenum = require("../polyfills").jsenum;
var autoUpdateProperty = require("../polyfills").autoUpdateProperty;
exports.PROGRAM_TYPE =[null, "News", "Current Affairs", "Information", "Sport", "Education", "Drama", "Arts", "Science... | vramdal/radiopi | extmodule/dab.js | JavaScript | apache-2.0 | 9,386 |
/**
* @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/stats/base/dists/weibull/cdf/test/test.factory.js | JavaScript | apache-2.0 | 6,764 |
var adjacency = (function (){
var svg;
var width, height, rx, ry;
var div, bundle, line, cluster;
var nodes, links, splines, path;
width = $("#relation").width();
height = width*.75;
rx = width / 2, ry = height/2;
var _render = function (relationalData) {
cluster = d3.layout.cluster().size([360,ry/2]).s... | rishikanths/umls | src/main/webapp/js/bundle_adjacency.js | JavaScript | apache-2.0 | 3,389 |
/**
* Copyright (c) Microsoft. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | squirrelfm/azure-sdk-tools-xplat | test/commands/arm/group/arm.group-template-tests.js | JavaScript | apache-2.0 | 6,294 |
/*
Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/cldr/nls/gregorian",{root:{"dateFormatItem-Ehm":"E h:mm a","days-standAlone-short":"Sun Mon Tue Wed Thu... | wanglongbiao/webapp-tools | Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojo/cldr/nls/gregorian.js | JavaScript | apache-2.0 | 5,570 |
/**
* reference dwz.util.date.js
* @author ZhangHuihua@msn.com
*
*/
(function($){
$.setRegional("datepicker", {
dayNames:['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
monthNames:['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
});
$.fn.datepicker = function(opts){
... | JeffLi1993/itp | itp-web/wmuitp/WebContent/bgFrame/js/dwz.datepicker.js | JavaScript | apache-2.0 | 8,795 |
import { mount } from 'avoriaz'
import { VCarouselItem } from '~components/VCarousel'
const imageSrc = 'https://vuetifyjs.com/static/doc-images/cards/sunshine.jpg'
describe('VCarouselItem.js', () => {
it('should render component and match snapshot', () => {
const wrapper = mount(VCarouselItem, {
propsData... | davin-bao/peanut | node_modules/vuetify/src/components/VCarousel/VCarouselItem.spec.js | JavaScript | apache-2.0 | 990 |
var teamApi = require('../api/teamsApi');
var teamAdminApi = require('../api/teamsAdminApi');
var auth = require('../auth/index');
module.exports = function (app) {
app.get('/api/v1/teams', teamApi.getTeams);
app.get('/api/v1/team/:tId', teamApi.getIndTeam);
app.get('/api/v1/fixtures', teamApi.getMatches);... | BPL-8/BPL-WEB | server/routes/router.js | JavaScript | apache-2.0 | 1,148 |
import gulp from 'gulp';
import _ from 'lodash';
import path from 'path';
import gutil from 'gulp-util';
import mkdirp from 'mkdirp';
import Rsync from 'rsync';
import Promise from 'bluebird';
import eslint from 'gulp-eslint';
import del from 'del';
import tar from 'gulp-tar';
import gzip from 'gulp-gzip';
import fs fr... | JuanCarniglia/kbn_sunburst_vis | gulpfile.babel.js | JavaScript | apache-2.0 | 2,924 |
var _ = require('./lodash-local')
var querystring = require('querystring')
function requestNodeJs(config) {
if (this.options.insecure === true) {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
}
var pThis = this
var https = this.hasOwnProperty('https') ? this.https : null;
if (https === ... | flexiodata/flexio-sdk-js | src/http-node.js | JavaScript | apache-2.0 | 3,199 |