code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
module.exports={"title":"JustGiving","hex":"AD29B6","source":"https://justgiving.com","svg":"<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>JustGiving icon</title><path d=\"M23.716 9.925H15.33l-4.898 4.919h6.727c-.885 1.975-2.865 3.061-5.16 3.061-3.104 0-5.639-2.67-5.639-5.771C6.36 ... | cdnjs/cdnjs | ajax/libs/simple-icons/1.11.0/justgiving.js | JavaScript | mit | 813 |
//>>built
define({"themes/FoldableTheme/nls/strings":{_themeLabel:"Temaet Foldbar",_layout_default:"Standard oppsett",_layout_layout1:"Oppsett 1",_localized:{}}}); | pjdohertygis/MapSAROnline | Web Mapping Application/themes/FoldableTheme/nls/main_nb.js | JavaScript | cc0-1.0 | 163 |
//users_controller.js
var crypto = require("crypto");
var user = require("../models/users_model.js");
var UserModel = new user();
exports.create = function(req, res) {
console.log("Callaing Monoose Create");
if(req.method.toLowerCase() != "post") {
res.render("signup.jade", {layout: false});
}
else {
... | ahmedrozik/senseEgypt | controllers/users_controller.js | JavaScript | epl-1.0 | 1,199 |
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
lib: {
files: [
{expand: true,
src: [
'vendor/jquery/jquery.js',
'vendor/jquery-mobile-bower/js/jquery.mobi... | cesarpachon/cuentacuentos | Gruntfile.js | JavaScript | gpl-2.0 | 1,264 |
'use strict';
require('../common');
var assert = require('assert');
assert.throws(
function() {
process.binding('test');
},
/No such module: test/
);
assert.doesNotThrow(function() {
process.binding('buffer');
}, function(err) {
if (err instanceof Error) {
return true;
}
}, 'unexpected error');
| domino-team/openwrt-cc | package/gli-pub/openwrt-node-packages-master/node/node-v6.9.1/test/parallel/test-process-binding.js | JavaScript | gpl-2.0 | 318 |
function initOptions() {
defaultOptions = {
'autoShow': true,
'autoShowSelf': true,
'showTooltips': true,
'checkMail': true,
}
for (key in defaultOptions) {
if (localStorage[key] == undefined) {
localStorage[key] = defaultOptions[key]
}
}
}
r... | jmorais/reddit-companion | src/background.js | JavaScript | gpl-2.0 | 16,404 |
var QUnit,
assert,
config,
onErrorFnPrev,
testId = 0,
fileName = (sourceFromStacktrace( 0 ) || "" ).replace(/(:\d+)+\)?/, "").replace(/.+\//, ""),
toString = Object.prototype.toString,
hasOwn = Object.prototype.hasOwnProperty,
// Keep a local reference to Date (GH-283)
Date = window.Date,
setTimeout = window.... | jbielick/Ligaments | test/qunitjs/src/core.js | JavaScript | gpl-2.0 | 28,993 |
dojo._xdResourceLoaded(function(dojo, dijit, dojox){
return {depends: [["provide", "tests.data"],
["require", "tests.data.utils"],
["require", "tests.data.ItemFileReadStore"],
["require", "tests.data.ItemFileWriteStore"]],
defineResource: function(dojo, dijit, dojox){if(!dojo._hasResource["tests.data"]){ //_hasResource... | fedora-infra/packagedb | pkgdb/static/js/dojo/tests/data.xd.js | JavaScript | gpl-2.0 | 706 |
'use strict';
var colorController = angular.module('colorController', [])
.controller('colorCtrl', function($scope, colorFactory) {
$scope.colors = [];
colorFactory.getColors().success(function(data){
$scope.colors = data;
});
});
var swatchController = angular.module('swatchController',[])
.controller('s... | kt0cdev/colors-seed | app/js/controllers.js | JavaScript | gpl-2.0 | 1,945 |
/**
* Created by Rebecca_Han on 16/10/27.
*/
module.exports={
};
var next = {
"id": 4,
"data": [
{
"question_id": 9,
"answer_id": 61,
"feed_source_id": 25,
"feed_source_name": "George9",
"feed_source_txt": "赞了回答9",
"feed_source... | YHaven/sjqTest | wxCode/lzhihu/data/data_discovery_next.js | JavaScript | gpl-2.0 | 5,670 |
/* global by */
const helpers = require('../../shared/helpers');
const components = require('../../shared/components');
const FU = require('../../shared/FormUtils');
const InvoiceRegistryPage = require('./registry.page.js');
const Search = require('./registry.search.js');
describe('Invoice Registry', () => {
const... | IMA-WorldHealth/bhima-2.X | test/end-to-end/patient/invoice/registry.spec.js | JavaScript | gpl-2.0 | 1,338 |
/*
* This file is part of the MediaWiki extension MediaViewer.
*
* MediaViewer 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.
*... | tuxun/smw-funwiki | extensions/MultimediaViewer/tests/qunit/mmv/ui/mmv.ui.metadataPanelScroller.test.js | JavaScript | gpl-2.0 | 8,450 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.messages = exports.ruleName = undefined;
exports.default = function (expectation) {
return function (root, result) {
var validOptions = (0, _utils.validateOptions)(result, ruleName, {
actual: expectation,
possible... | PWNCgit/website | sites/all/themes/pwnc_theme/node_modules/stylelint/dist/rules/block-closing-brace-newline-before/index.js | JavaScript | gpl-2.0 | 2,590 |
/*
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 it and/or modify
it under the terms of the GNU Affero Genera... | lightryuzaki/project1 | scripts/npc/2081300.js | JavaScript | gpl-2.0 | 4,752 |
'use strict';
/**
* Module dependencies.
*/
var init = require('./config/init')(),
config = require('./config/config'),
mongoose = require('mongoose'),
chalk = require('chalk');
/**
* Main application entry file.
* Please note that the order of loading is important.
*/
// Bootstrap db connection
var db = mong... | henryYHC/STS_IntegratedSystem | server.js | JavaScript | gpl-2.0 | 984 |
/*
* author: "Alexander Shabanov <avshabanov@gmail.com> (https://github.com/avshabanov)
* license: "Apache-2.0
*/
define(['rsvp'], function (rsvp) {
var module = {exports: {}};
var HttpRequest = XMLHttpRequest;
// event names: cache miss and cache hit
var XHR_ERROR = "xhrError";
/** Global event target ... | tomachalek/kontext | public/files/js/vendor/rsvp-ajax.js | JavaScript | gpl-2.0 | 4,283 |
http://jsfiddle.net/fusioncharts/Pfuk6/ | sguha-work/fiddletest | backup/fiddles/Chart/Zero_Plane/Configuring_zero_plane_in_charts/url.js | JavaScript | gpl-2.0 | 39 |
( function( $ ) {
'use strict';
$( function() {
/**
* Switch the options based on the store contract.
*/
$( '[id^="woocommerce_cielo"][id$="store_contract"]' ).on( 'change', function() {
var design = $( '[id^="woocommerce_cielo"][id$="_design"]' ).closest( 'tr' ),
designTitle = design.closest(... | sandermendes/cielo-woocommerce | assets/js/admin/admin.js | JavaScript | gpl-2.0 | 2,383 |
var searchData=
[
['cameraflightsimulator',['CameraFlightSimulator',['../classCameraFlightSimulator.html',1,'']]],
['camerafps',['CameraFPS',['../classCameraFPS.html',1,'']]]
];
| raphaelbresson/PolytechWars | html/search/classes_63.js | JavaScript | gpl-3.0 | 182 |
/**
* @package HTML Chess
* @version 1.0 revision #8
* @author Stefano Gioffre', see README.txt
* @copyleft 2010 Stefano Gioffre'
* See COPYRIGHT.txt for copyright notices and details.
* @license GNU/GPL Version 3, see LICENSE.txt
* HTML Chess is free software; you can redistribute it and/or
* modify it under t... | josegrad/prwf265 | chess.js | JavaScript | gpl-3.0 | 56,240 |
import React, {Component} from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux'
const Loader = require('react-loader');
const _ = require('lodash');
import * as notificationActions from '../../actions/notificationActions';
import * as etherBetActions from '../../actions/etherBet... | Ethbet/ethbet | src/components/ether/BetMaker.js | JavaScript | gpl-3.0 | 3,414 |
/*
* This file is part of JDI.
* Copyright (c) 2013 Simon Brunel.
* Contact: http://www.github.com/simonbrunel
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Li... | wangjun/jdi | application/app/util/Strings.js | JavaScript | gpl-3.0 | 7,297 |
/* YUI 3.9.0pr1 (build 202) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
YUI.add("datasource-polling",function(e,t){function n(){this._intervals={}}n.prototype={_intervals:null,setInterval:function(t,n){var r=e.later(t,this,this.sendRequest,[n],!0);return this._intervals[r.id]=r,e.later(0,this,this.send... | rochestb/Adventurly | node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/datasource-polling/datasource-polling-min.js | JavaScript | gpl-3.0 | 608 |
const restify = require('restify');
const server = restify.createServer({
name: 'turnup',
});
const debug = require('../routes/debug'); // TODO: remove debug routes
debug.applyRoutes(server, '/debug');
const info = require('../routes/info');
info.applyRoutes(server, '/info'); // all info routes go under the /info... | technoboy10/turnup-backend | lib/util/server.js | JavaScript | gpl-3.0 | 419 |
import TextContainer from "../../../src/tree/structure/TextContainer";
describe( "TextContainer", () => {
describe( "constructor", () => {
it( "creates a new TextContainer", () => {
const textContainer = new TextContainer();
expect( textContainer instanceof TextContainer ).toEqual( true );
expect( textCon... | Yoast/js-text-analysis | spec/tree/structure/TextContainerSpec.js | JavaScript | gpl-3.0 | 894 |
// exact formatting of a moment.js duration object
moment.duration.fn.format = function(){
var str = "";
if (this.days() > 0) str = str + Math.floor(this.days()) + " d ";
if (this.hours() > 0) str = str + Math.floor(this.hours()) + " h ";
if (this.minutes() > 0) str = str + Math.floor(this.minutes()) + ... | AnalyticsMediaGroup/redshift_polizei | app/assets/javascripts/shared.js | JavaScript | gpl-3.0 | 10,414 |
/*
Paella HTML 5 Multistream Player
Copyright (C) 2017 Universitat Politècnica de València Licensed under the
Educational Community 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.osedu.org/licenses/ECL-2... | leosamu/paella | src/10_loader.js | JavaScript | gpl-3.0 | 9,850 |
/*
* Copyright (c) 2015-2017 IPT-Intellectual Products & Technologies (IPT).
* All rights reserved.
*
* This file is licensed under terms of GNU GENERAL PUBLIC LICENSE Version 3
* (GPL v3). The full text of GPL v3 license is providded in file named LICENSE,
* residing in the root folder of this project.
*
*/
c... | iproduct/course-angular2 | knowledge-testing/server/routes/user.routes.js | JavaScript | gpl-3.0 | 5,589 |
var searchData=
[
['x_5forigin',['x_origin',['../structtga__header.html#ae9201cc8d5251e5494f9815c1c1be892',1,'tga_header']]],
['x_5fres',['x_res',['../group__graphics-headers.html#a4ae0165eefb7a5731c0724d8467f593d',1,'sh3_graphics::bmp_info_header']]]
];
| Palm-Studios/Palm-Studios.github.io | sh3-redux/doc/html/search/variables_14.js | JavaScript | gpl-3.0 | 259 |
angular.module('openITCOCKPIT').directive('afterExportCfg', function($http, $state, NotyService, RedirectService){
return {
restrict: 'E',
templateUrl: '/ConfigurationFiles/AfterExport.html',
scope: {},
controller: function($scope){
$scope.post = {};
$scope... | trevrobwhite/openITCOCKPIT | webroot/js/scripts/directives/ConfigFiles/AfterExportCfgDirective.js | JavaScript | gpl-3.0 | 1,693 |
(function ($) {
document.addEventListener("DOMContentLoaded", function(event) {
var data = {
"subject" : "lti.frameResize",
"height": ($('body').height()+10)
};
// post up to the parent frame
window.parent.postMessage(data, '*');
});
})(jQuery); | mmilutinovic1313/elmsln | core/dslmcode/shared/drupal-7.x/modules/elmsln_contrib/canvas_api/js/window_resize.js | JavaScript | gpl-3.0 | 277 |
'use strict';
angular.module('transitIndicators')
.controller('OTIScenariosNewsuccessController',
['config', '$modal', '$scope', '$state', '$timeout',
'OTIIndicatorJobModel', 'OTIMapService', 'OTIScenarioManager', 'OTIScenarioModel',
'OTITripManager',
function (config, ... | flibbertigibbet/open-transit-indicators | js/angular/app/scripts/modules/scenarios/new-success/new-success-controller.js | JavaScript | gpl-3.0 | 3,246 |
/**
* Hosts contain n number of modules.
*/
export class Host extends wsinclude( "base/HostBase" ){
/**
* Configures how the host should operate and what host names are allow in what environments.
*/
SetupHost( ) {
//<!OPTIONS!>////Host setup goes here//
}
}
| navstev0/ES6WebServer | ServiceScaffolding/Host.es.js | JavaScript | gpl-3.0 | 283 |
'use strict';
import { Node } from "../../../../../lib/structr/persistence/model/Node.js";
export class FlowContainer extends Node {
constructor(id, name, startNode, flowNodes) {
super(id,name, FlowContainer.getType());
if (startNode !== undefined && startNode !== null) {
this.start... | structr/structr | structr-ui/src/main/resources/structr/js/flow-editor/src/js/editor/entities/FlowContainer.js | JavaScript | gpl-3.0 | 528 |
/*
* Revel Systems Online Ordering Application
*
* Copyright (C) 2014 by Revel Systems
*
* This file is part of Revel Systems Online Ordering open source application.
*
* Revel Systems Online Ordering open source application is free software: you
* can redistribute it and/or modify it under the terms of the GN... | RevelSystems/Online-Ordering | skins/weborder_mobile/views/promo_message.js | JavaScript | gpl-3.0 | 3,313 |
import PropTypes from 'prop-types';
import React from 'react';
import SpinnerIcon from 'Components/SpinnerIcon';
import { icons } from 'Helpers/Props';
import styles from './MovieEditorFooterLabel.css';
function MovieEditorFooterLabel(props) {
const {
className,
label,
isSaving
} = props;
return (
... | Radarr/Radarr | frontend/src/Movie/Editor/MovieEditorFooterLabel.js | JavaScript | gpl-3.0 | 830 |
/**
* jQuery Form Validator Module: Security
* ------------------------------------------
* Created by Victor Jonsson <http://www.victorjonsson.se>
*
* This form validation module adds validators typically used on
* websites in the UK. This module adds the following validators:
* - ukvatnumber
*
* @website ht... | xdamsorg/xDams-core | src/main/webapp/resources/bootstrap-3/assets/form-validator/uk.dev.js | JavaScript | gpl-3.0 | 2,141 |
/**
Model class to help build models.
Is not exactly an 'OOP base' class, but provides
utilities to models and a model definition object
when executed in their constructors as:
'''
function MyModel() {
Model(this);
// Now, there is a this.model property with
// an insta... | loconomics/loconomics | app/source/js/models/Model.js | JavaScript | mpl-2.0 | 16,610 |
// flow-typed signature: 9256c693bdb7604c5028cf16187cde8e
// flow-typed version: <<STUB>>/@fluent/bundle_v^0.16.0/flow_v0.96.0
/**
* This is an autogenerated libdef stub for:
*
* '@fluent/bundle'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work ... | mstange/cleopatra | src/types/libdef/npm/@fluent/bundle_vx.x.x.js | JavaScript | mpl-2.0 | 2,518 |
// String format function: http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format/4673436#4673436
if (!String.prototype.format) {
String.prototype.format = function() {
var args = arguments;
return this.replace(/{(\d+)}/g, function(match, number) {
retur... | moquist/raft.js | web/demo_render.js | JavaScript | mpl-2.0 | 7,709 |
import { PanelTestProvider } from "lib/PanelTestProvider.jsm";
import schema from "content-src/asrouter/schemas/panel/cfr-fxa-bookmark.schema.json";
import update_schema from "content-src/asrouter/templates/OnboardingMessage/UpdateAction.schema.json";
import whats_new_schema from "content-src/asrouter/templates/Onboard... | mozilla/activity-streams | test/unit/asrouter/PanelTestProvider.test.js | JavaScript | mpl-2.0 | 1,546 |
var searchData=
[
['flashctl',['flashctl',['../group__flashctl__api.html',1,'']]]
];
| ots-m2m/sew-lwm2m-reference-design | thirdparty/msp430/doc/MSP430i2xx/html/search/groups_2.js | JavaScript | mpl-2.0 | 87 |
/* Copyright 2019 Firewalla 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,
* ... | MelvinTo/firewalla | extension/cloud/CloudAction.js | JavaScript | agpl-3.0 | 817 |
/*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | app/jsx/grading/GradeEntry/GradeOverrideEntry.js | JavaScript | agpl-3.0 | 4,279 |
(function($) {
var Alpaca = $.alpaca;
Alpaca.Fields.EditorField = Alpaca.Fields.TextField.extend(
/**
* @lends Alpaca.Fields.EditorField.prototype
*/
{
/**
* @see Alpaca.Fields.TextField#getFieldType
*/
getFieldType: function() {
return "editor";... | Irstea/collec | display/node_modules/alpaca/src/js/fields/advanced/EditorField.js | JavaScript | agpl-3.0 | 15,169 |
odoo.define('portal.chatter', function (require) {
'use strict';
var core = require('web.core');
var publicWidget = require('web.public.widget');
var time = require('web.time');
var portalComposer = require('portal.composer');
var qweb = core.qweb;
var _t = core._t;
/**
* Widget PortalChatter
*
* - Fetch message ... | ygol/odoo | addons/portal/static/src/js/portal_chatter.js | JavaScript | agpl-3.0 | 10,025 |
/*
* UIMTreeProcessor Class
* version: 1.0 (11-16-2010)
*
* Copyright (c) 2010 Vlad Shamgin (uimonster.com)
*
* @requires jQuery v1.3.2 or later
* @requires jsTree 1.0-rc1 or later
*
* Examples and documentation at: http://uimonster.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensou... | TecaDigitale/Visualizzatore-Immagini-ver.-4 | Visualizzatore Immagini ver. 4.0 static/ImageViewer/jstree/UIMTreeProcessor.js | JavaScript | agpl-3.0 | 5,397 |
/**
* Manati PostgreSQL REST API
* Copyright (C) 2016 Sylvain Verly
*
* 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 any later version.
*
*... | sylvainv/pg-manati | plugins/authorization/index.js | JavaScript | agpl-3.0 | 2,068 |
'use strict';
/* Services */
angular.module('quizsApp')
.factory('UsersApi', ['$resource', 'APP_PATH', function( $resource, APP_PATH ) {
return $resource( APP_PATH + '/api/users/', {} , {
'current': {method: 'GET', url: APP_PATH + '/api/users/current' },
'regroupements': {method: 'GET', url: APP_PATH + '/api/u... | Pilooz/service-quizs | public/app/scripts/services/users.js | JavaScript | agpl-3.0 | 1,059 |
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Larave... | alariva/timegrid | gulpfile.js | JavaScript | agpl-3.0 | 5,431 |
jQuery(function(){
$('table input[type="number"]').on('keyup', function(){
recalc_sum();
});
function recalc_sum(){
var sum = 0;
var transaction_count = 0;
$('table input[type="number"]:visible').each(function() {
var am = Number($(this).val());
sum += am;
if (am){
transaction_count++;
}
... | eeemarv/eland | public/js/mollie_payments_add.js | JavaScript | agpl-3.0 | 1,458 |
(function(){
"use strict";
angular
.module('PLMApp')
.directive('formCommonErrorFeedback', formCommonErrorFeedback);
formCommonErrorFeedback.$inject = ['commonErrorsFeedback'];
function formCommonErrorFeedback(commonErrorsFeedback) {
return {
restrict: 'E',
... | MatthieuNICOLAS/webPLM | public/app/components/exercise/form-common-error-feedback.directive.js | JavaScript | agpl-3.0 | 606 |
// Modified by ProtonTech AG
// Adapted from https://github.com/artjomb/cryptojs-extension/blob/8c61d159/test/eax.js
const openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('../../dist/openpgp');
const chai = require('chai');
chai.use(require('chai-as-promised'));
const expect = c... | Gaff/openpgpjs | test/crypto/ocb.js | JavaScript | lgpl-3.0 | 7,211 |
var searchData=
[
['address_5fbits',['ADDRESS_BITS',['../_h_d44780gpio_phy_8cpp.html#a3128e6392b3cbdc1f9a4b7167feb9075',1,'HD44780gpioPhy.cpp']]]
];
| CJxD/IOoo | doc/doxygen/html/search/defines_61.js | JavaScript | lgpl-3.0 | 151 |
var dir_48cc34c67c7aa1f60bfd797873f7de9c =
[
[ "pruss_intc_mapping.h", "pruss__intc__mapping_8h.html", "pruss__intc__mapping_8h" ],
[ "prussdrv.h", "prussdrv_8h.html", "prussdrv_8h" ]
]; | CJxD/IOoo | doc/doxygen/html/dir_48cc34c67c7aa1f60bfd797873f7de9c.js | JavaScript | lgpl-3.0 | 194 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | begoldsm/azure-sdk-for-node | lib/services/search/lib/service/models/lengthTokenFilter.js | JavaScript | apache-2.0 | 2,206 |
var searchData=
[
['e_5fcustom_5fshape',['e_custom_shape',['../classodf_1_1odf2xhtml_1_1ODF2XHTML.html#af15fc249e395d62b54187f7d0295b140',1,'odf::odf2xhtml::ODF2XHTML']]],
['e_5fdc_5fcontentlanguage',['e_dc_contentlanguage',['../classodf_1_1odf2xhtml_1_1ODF2XHTML.html#ab7bd4bc42e4f4416b2fe93926d62b7ea',1,'odf::odf2... | bossvn/odfpy | doc/html/search/all_5.js | JavaScript | apache-2.0 | 10,009 |
//// [tests/cases/compiler/duplicateVarsAcrossFileBoundaries.ts] ////
//// [duplicateVarsAcrossFileBoundaries_0.ts]
var x = 3;
var y = "";
//// [duplicateVarsAcrossFileBoundaries_1.ts]
var x = true;
var z = 3;
//// [duplicateVarsAcrossFileBoundaries_2.ts]
var x = "";
var y = 3;
var z = false;
//// [duplicat... | Microsoft/TypeScript | tests/baselines/reference/duplicateVarsAcrossFileBoundaries.js | JavaScript | apache-2.0 | 996 |
/* ============================================================================
*
* (c) Copyright SXOOP Technologies Ltd. 2005-2006
* All rights reserved.
*
* This file contains code for handling hi-res images
*
*/
var PXN8 = PXN8 || {};
// called when the hi-res update is complete
PXN8.ON_HIRES_COMPLETE = "ON_... | SmarterApp/ItemAuthoring | sbac-iaip/common/pixenate/javascript/pxn8_hires.js | JavaScript | apache-2.0 | 3,044 |
Input::
//// [/user/username/projects/myproject/a.ts]
export interface Point {
name: string;
c: Coords;
}
export interface Coords {
x2: number;
y: number;
}
//// [/user/username/projects/myproject/b.ts]
import { Point } from "./a";
export interface PointWrapper extends Point {
}
//// [/user/use... | RyanCavanaugh/TypeScript | tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js | JavaScript | apache-2.0 | 13,923 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/iotcentralManagement/lib/operations/operations.js | JavaScript | apache-2.0 | 16,775 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const DUMMY_PAGE = "http://example.org/browser/browser/base/content/test/dummy_page.html";
functio... | sergecodd/FireFox-OS | B2G/gecko/browser/base/content/test/browser_bug749738.js | JavaScript | apache-2.0 | 1,020 |
"use strict";
const isOSX = process.platform === 'darwin';
const isDevMode = process.env.NODE_ENV === 'development';
const electron = require('electron');
const webContents = electron.webContents;
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
let gameWindow = null;
let setupSteps = 2;
let s... | HunseopJeong/WATT | sample/sthings/MultiDevice/apps/Controller/main.js | JavaScript | apache-2.0 | 1,151 |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import Legend from './Legend';
import KeyboardAccelerators from '../utils/KeyboardAccelerators';
import Intl from '../utils/Intl';
import CSSClassnames from '../ut... | davrodpin/grommet | src/js/components/Distribution.js | JavaScript | apache-2.0 | 18,181 |
'use strict';
// ------------------------------------------------------------------------------------------ Test Dependencies
var path = require('path');
var should = require('chai').should();
var nconf = require('nconf');
nconf.argv()
.env()
.file('local', { file: path.join(__dirname, '../../../local.json') })
... | YouTransfer/YouTransfer | test/views/download/download.test.js | JavaScript | apache-2.0 | 3,490 |
'use strict';
goog.require('grrUi.core.module');
goog.require('grrUi.tests.module');
describe('download collection files directive', function() {
var $compile, $q, $rootScope, grrApiService;
var $window = {
navigator: {
}
};
beforeEach(module(function($provide) {
$provide.value('$window', $windo... | pidydx/grr | grr/gui/static/angular-components/core/download-collection-files-directive_test.js | JavaScript | apache-2.0 | 5,861 |
//// [umdDependencyComment2.ts]
///<amd-dependency path='bar'/>
import m1 = require("m2")
m1.f();
//// [umdDependencyComment2.js]
///<amd-dependency path='bar'/>
(function (dependencies, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exp... | vilic/TypeScript | tests/baselines/reference/umdDependencyComment2.js | JavaScript | apache-2.0 | 620 |
import Resource from "sp-resource";
import _ from "underscore";
export default class Channel extends Resource {
default(ctx) {
return super.default().then(doc => {
return {
...doc,
userId: ctx.user.id,
users: []
};
});
}
validate(ctx, doc) {
return super.validate(... | streamkitchen/streamkitchen | packages/sp-plugin-core/src/resources/Channel.js | JavaScript | apache-2.0 | 757 |
var MSG = {
title: "Код",
blocks: "Блокчиња",
linkTooltip: "Зачувај и стави врска до блокчињата.",
runTooltip: "Пушти го програмот определен од блокчињата во работниот простор.",
badCode: "Грешка во програмот:\n%1",
timeout: "Го надминавте допуштениот број на повторувања во извршувањето.",
discard: "Да ги... | markocelan/blockly-minecraft | minecraft/msg/mk.js | JavaScript | apache-2.0 | 1,712 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | kinbod/deeplearning4j | deeplearning4j-ui-parent/deeplearning4j-ui-components/src/main/resources/assets/dl4j-ui.js | JavaScript | apache-2.0 | 61,822 |
import * as utils from '../src/utils';
import {registerBidder} from '../src/adapters/bidderFactory';
import * as bidfactory from '../src/bidfactory';
var CONSTANTS = require('../src/constants.json');
const BIDDER_CODE = 'tim';
function parseBidRequest(bidRequest) {
let params = bidRequest.url.split('?')[1];
var ob... | olafbuitelaar/Prebid.js | modules/timBidAdapter.js | JavaScript | apache-2.0 | 5,163 |
/**
* @license
* Copyright 2016 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 requi... | anton-kachurin/material-components-web | packages/mdc-ripple/constants.js | JavaScript | apache-2.0 | 1,666 |
/*
* Copyright 2017 StreamSets Inc.
*
* 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... | streamsets/datacollector | datacollector-ui/src/main/webapp/app/_declarations.js | JavaScript | apache-2.0 | 1,075 |
import <%= view %> from '<%= dest %>';
import {Model} from 'backbone';
describe('<%= view %>', () => {
let view;
beforeEach(() => {
let model = new Model({
id: 'Home'
});
view = new <%= view %>({model : model});
view.render();
});
it('render() should return the view object', () => {
... | Accenture/generator-mario | generators/itemview/templates/es6/_item-view-test.js | JavaScript | apache-2.0 | 522 |
'use strict';
/**
* @ngdoc directive
* @name flowsimUiApp.directive:fgContextKey
* @description
* # fgContextKey
*/
angular.module('flowsimUiApp')
.directive('fgContextKey', function() {
return {
templateUrl: 'views/simulation/fgcontextkey.html',
replace: true,
rest... | flowgrammable/flowsim | flowsim-ui/app/scripts/directives/fgcontextkey.js | JavaScript | apache-2.0 | 675 |
'use strict';
app.directive('dbPasswordReset',
['BackendService', 'UserService',
function(BackendService, UserService){
return {
templateUrl: '../templates/password-reset.html',
restrict: 'EA',
controller:function($scope, $location){
var user = UserService.getUserId();
... | cofauver/portfolio1 | static/scripts/directives/passwordReset.js | JavaScript | apache-2.0 | 1,216 |
export { RoutedButton } from './RoutedButton';
| HewlettPackard/grommet | src/js/components/RoutedButton/index.js | JavaScript | apache-2.0 | 47 |
console.log('1..2')
var https = require('https');
https.get("https://api.github.com", function (res) {
console.log('ok')
console.log('# statusCode', res.statusCode)
res.on('data', function (data) {
// console.log('# received', data.length, 'bytes');
})
res.on('end', function () {
console.log('ok - don... | rwaldron/runtime | test/todo/https-goodcert.js | JavaScript | apache-2.0 | 421 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/apimanagement/lib/models/propertyEntityBaseParameters.js | JavaScript | apache-2.0 | 1,797 |
/*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | khartec/waltz | waltz-ng/client/survey/components/survey-run-overview.js | JavaScript | apache-2.0 | 1,460 |
const appConfig = require('./../common/appConstants');
const mongoose = require('mongoose');
const IMPORT_STATUS = ['pending', 'inprogress', 'imported', 'error'];
const schema = new mongoose.Schema({
remarks: { type: String, required: true },
importFile: { type: String, required: true },
//Assuming this... | stackroute/samarthyaPlatform | server/api/v1/profileImport/profileImport.entity.js | JavaScript | apache-2.0 | 1,220 |
var mc = angular.module('mc', []);
// Sets the AngularJS interpolators as <[ and ]>, to not conflict with Django.
mc.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('<[');
$interpolateProvider.endSymbol(']>');
});
function MultipleChoiceInput($scope) {
$scope.choices = GLOBALS.choices;
... | sunu/oppia-test-4 | data/widgets/interactive/MultipleChoiceInput/static/js/MultipleChoiceInput.js | JavaScript | apache-2.0 | 629 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/computerVision/lib/models/readOperationResult.js | JavaScript | apache-2.0 | 1,875 |
(function(){var Sntp = require('../lib');
// All options are optional
var options = {
host: 'nist1-sj.ustiming.org', // Defaults to pool.ntp.org
port: 123, // Defaults to 123 (NTP)
resolveReference: true, // Default to false (not resolving)
timeout: 1000 ... | durwasa-chakraborty/navigus | .demeteorized/bundle/programs/server/app/lib/node_modules/modulus/node_modules/update-notifier/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js | JavaScript | apache-2.0 | 646 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | vohtaski/moodle-shindig | features/src/main/javascript/features/i18n/data/NumberFormatConstants__hy_AM.js | JavaScript | apache-2.0 | 1,407 |
(function() {
function LandingCtrl(Room) {
this.room = Room;
}
angular
.module('blocChat')
.controller('LandingCtrl', ['Room', LandingCtrl]);
})();
| sml2008/Bloc-Chat | dist/scripts/LandingCtrl.js | JavaScript | apache-2.0 | 200 |
/*
Copyright 2013 Google Inc.
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 to in writing, software
distri... | apparentlymart/camlistore-debian | server/camlistored/ui/detail.js | JavaScript | apache-2.0 | 11,264 |
module.exports = function(grunt){
//configuration goes here
var yeomanConfig = {
grant_widget: 'grant_widget/assets',
orcid_widget: 'orcid_widget/assets',
registry_widget: 'registry_widget/assets',
vocab_widget: 'vocab_widget/assets',
location_widget: 'location_capture_widget/assets'
}
grunt.initCon... | au-research/ANDS-Registry-Core | applications/apps/Gruntfile.js | JavaScript | apache-2.0 | 4,186 |
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"... | apache/cordova-lib | src/cordova/plugin/util.js | JavaScript | apache-2.0 | 3,500 |
CKEDITOR.plugins.setLang("attachments","en",{
title: "Select or Upload an Attachment",
loading: "Loading Attachments",
noAlbums: "You don't have any attachments yet, to add one click on the <strong>Upload New File(s)</strong> button",
upload: "Upload New File(s)"
}); | YAFNET/YAFNET | yafsrc/YetAnotherForum.NET/Scripts/ckeditor/plugins/albumsbrowser/lang/en.js | JavaScript | apache-2.0 | 286 |
module.exports = [{"isApi":true,"priority":1000.0001,"key":"Window","style":{backgroundColor:"#fff",}},{"isApi":true,"priority":1000.0002,"key":"Label","style":{width:Ti.UI.SIZE,height:Ti.UI.SIZE,color:"#000",font:{fontSize:20,fontFamily:"Helvetica Neue",},textAlign:"center",}},{"isApi":true,"priority":1000.0005,"key":... | RMScott/CameraApp | build/android/bin/assets/Resources/alloy/styles/friends.js | JavaScript | apache-2.0 | 759 |
//// [mappedTypeCircularReferenceInAccessor.ts]
interface User {
firstName: string,
level: number,
get bestFriend(): User
set bestFriend(user: SerializablePartial<User>)
}
type FilteredKeys<T> = { [K in keyof T]: T[K] extends number ? K : T[K] extends string ? K : T[K] extends boolean ? K : never }[keyof T];
... | Microsoft/TypeScript | tests/baselines/reference/mappedTypeCircularReferenceInAccessor.js | JavaScript | apache-2.0 | 440 |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use th... | apache/solr | solr/webapp/web/js/angular/services.js | JavaScript | apache-2.0 | 13,449 |
EsriLeafletGeocoding.Controls.Geosearch.Providers.GeocodeService = EsriLeafletGeocoding.Services.Geocoding.extend({
options: {
label: 'Geocode Server',
maxResults: 5
},
suggestions: function(text, bounds, callback){
if (this.options.supportsSuggest) {
var request = this.suggest().text(text);
... | rntdrts/esri-leaflet-geocoder | src/Providers/GeocodeService.js | JavaScript | apache-2.0 | 1,311 |
/**
* Copyright 2017 The AMP HTML 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 require... | rsimha-amp/amphtml | ads/vendors/wpmedia.js | JavaScript | apache-2.0 | 1,020 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/batchManagement/lib/models/certificate.js | JavaScript | apache-2.0 | 5,870 |
/*
Copyright (C) 2007 Richard Ishida ishida@w3.org
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 as long as you point to
... | DOREMUS-ANR/knowledge-base | scripts/common/unicode_converter.js | JavaScript | apache-2.0 | 37,214 |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011 Zynga Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software an... | binpossible49/bombgame | gamehost/Cocos2d_Test/cocos2d/platform/CCSAXParser.js | JavaScript | apache-2.0 | 8,196 |
(function() {
var c;
lpp.imports('lpp.CoolPlay');
c = lpp.create("lpp.CoolPlay", "test");
}).call(this);
| fsjohnhuang/lpp | src/beta 0.3/UnitTest_old/test.js | JavaScript | bsd-2-clause | 114 |
/*
* Copyright (C) 2015 ICOS Group, Newcastle University. All rights reserved.
* Contact: James Alastair McLaughlin <j.a.mclaughlin@ncl.ac.uk>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redist... | ICO2S/sboljs | lib/serialize/json/serializeSequenceConstraint.js | JavaScript | bsd-2-clause | 1,966 |