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 |
|---|---|---|---|---|---|
//! moment.js
//! version : 2.15.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(fac... | snipelixir/printing-amazone | public/assets/backend/plugins/calendar/moment.min.js | JavaScript | agpl-3.0 | 140,641 |
/*
Copyright (c) 2016 eyeOS
This file is part of Open365.
Open365 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 ver... | Open365/spice-web-client | keymaps/keymap.js | JavaScript | agpl-3.0 | 6,798 |
import { expect } from 'chai';
import semverCompare from './semverCompare';
describe('semverCompare', () => {
const chaos = [
'2.5.10.4159',
'0.5',
'0.4.1',
'1',
'1.1',
'2.5.0',
'2',
'2.5.10',
'10.5',
'1.25.4',
'1.2.15',
];
const order = [
'0.4.1',
'0.5',
... | ahoereth/lawly | src/helpers/semverCompare.test.js | JavaScript | agpl-3.0 | 764 |
var clover = new Object();
// JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]}
clover.pageData = {"classes":[{"el":190,"id":232647,"methods":[{"el":61,"sc":2,"sl":55},{"el":113,"sc":2,"sl":63},{"el":153,"sc":2,"sl":115},{"el":162,"sc":2,"sl":155},{"el":166,"sc":2,"sl":164},{"el":170,"sc":2,"sl":... | cm-is-dog/rapidminer-studio-core | report/html/com/rapidminer/operator/preprocessing/filter/ValueReplenishmentModel.js | JavaScript | agpl-3.0 | 1,448 |
"use strict";
var assert = require('assert')
, _ = require('underscore')
describe('Autocompleter widget', function () {
var Autocompleter = require('../utils/autocomplete_widget')
describe('instance', function () {
var testAutocompleter = new Autocompleter(null, 'egp', 'topics');
it('should query the ... | CENDARI/editorsnotes | editorsnotes_app/js/test/utils.js | JavaScript | agpl-3.0 | 6,316 |
var clover = new Object();
// JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]}
clover.pageData = {"classes":[{"el":70,"id":245172,"methods":[{"el":61,"sc":2,"sl":48},{"el":65,"sc":2,"sl":63},{"el":69,"sc":2,"sl":67}],"name":"ResourceLabel","sl":33}]}
// JSON: {test_ID : {"methods": [ID1, ID2, I... | cm-is-dog/rapidminer-studio-core | report/html/com/rapidminer/gui/tools/ResourceLabel.js | JavaScript | agpl-3.0 | 765 |
import { toArray, exists, stringToBoolean } from '../../../utils/utils'
import { head } from 'ramda'
export default function intent (addressbar, params) {
const setAppMode$ = addressbar.get('appMode')
.map(d => d.pop()) // what mode is the app in ? ("editor" or "viewer" only for now)
const setToolsets$ = addr... | usco/Jam | src/core/settings/actions/fromAddressbar.js | JavaScript | agpl-3.0 | 928 |
/*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | venturehive/canvas-lms | spec/javascripts/jsx/gradebook-history/api/HistoryApiSpec.js | JavaScript | agpl-3.0 | 4,496 |
function fetchData{{ id }}() {
function onDataReceived(series) {
data = [series];
$.plot("#{{ id }}", data, {
series: {
shadowSize: 0,
},
bars: {
show: true,
barWidth: series.barWidth,
align: "center"
},
xaxis: {
... | inteos/IBAdmin | templates/pages/runningjobswidget.js | JavaScript | agpl-3.0 | 855 |
import React from 'react';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import CoreAbilities from 'Parser/Core/Modules/Abilities';
import ISSUE_IMPORTANCE from 'Parser/Core/ISSUE_IMPORTANCE';
class Abilities extends CoreAbilities {
spellbook() {
... | hasseboulen/WoWAnalyzer | src/Parser/Druid/Balance/Modules/Features/Abilities.js | JavaScript | agpl-3.0 | 8,771 |
/*
INPUT:
* workspaceId
* contactId
DESCRIPTION
An editable list of phone numbers (`workspacesContactsPhoneNumbers`) owned by contactId.
*/
define([
"dojo/_base/declare"
, "dijit/form/ValidationTextBox"
, "put-selector/put"
, "hotplate/hotClientDojo/dgridWidgets/commonMixins"
, "hotplate/hotClientDojo/widgets/E... | mercmobily/bookingdojo | node_modules/bd/client/WorkspacesContacts/WorkspacesContactsPhoneNumbers.js | JavaScript | agpl-3.0 | 3,890 |
var webpack = require('webpack');
var dotenv = require('dotenv').load();
module.exports = exports = require('./webpack.config');
exports.plugins = [
new webpack.DefinePlugin({
__API_URL__: JSON.stringify(process.env.LANDLINE_API_URL),
__PROD__: false,
__S3_BUCKET__: JSON.stringify('landline-dev')
}),
... | asm-products/landline-web | webpack.config.dev.js | JavaScript | agpl-3.0 | 513 |
var root2 = {
"name": "flare",
"children": [
{
"name": "analytics",
"children": [
{
"name": "cluster",
"children": [
{"name": "AgglomerativeCluster", "size": 3938},
{"name": "CommunityStructure", "size": 3812},
{"name": "MergeEdge", "size": 743}
]
},
... | agentlab/ru.agentlab.maia | tools/ru.agentlab.maia.admin.ui/_old/js/_old/root2.js | JavaScript | lgpl-2.1 | 499 |
/*
* File: ui-list.js
* Author: Li XianJing <xianjimli@hotmail.com>
* Brief: List
*
* Copyright (c) 2011 - 2015 Li XianJing <xianjimli@hotmail.com>
*
*/
function UIList() {
return;
}
UIList.prototype = new UIElement();
UIList.prototype.isUIList = true;
UIList.prototype.isUILayout = true;
UIList.prototy... | noikiy/cantk | controls/js/ui-list.js | JavaScript | lgpl-2.1 | 7,568 |
/* http://www.kryogenix.org/code/browser/searchhi/ */
/* Modified 20021006 to fix query string parsing and add case insensitivity */
/* Modified 20030227 by sgala@hisitech.com to skip words with "-" and cut %2B (+) preceding pages */
function highlightWord(node,word)
{
// Iterate into this nodes childNodes
if... | hgschmie/EyeWiki | jspwiki/templates/old/search_highlight.js | JavaScript | lgpl-2.1 | 2,580 |
var interface_c_p_event =
[
[ "buttonNumber", "interface_c_p_event.html#a95f060acf8268fe7f3a16c42ea121466", null ],
[ "characters", "interface_c_p_event.html#a1bf8cbf0c017151070a99236c957fc94", null ],
[ "charactersIgnoringModifiers", "interface_c_p_event.html#aa1b99c685842a415f6736d776c8aba90", null ],
... | davidsiaw/cappuccino-docs | interface_c_p_event.js | JavaScript | lgpl-2.1 | 2,799 |
#!/usr/bin/env node
// requires
var webcredits = require('../lib/webcredits.js');
var program = require('commander');
/**
* version as a command
*/
function bin(argv) {
// setup config
var config = require('../config/dbconfig.js');
program
.option('-c, --currency <currency>', 'Currency')
.option('-d,... | webcredits/webcredits | bin/create.js | JavaScript | lgpl-3.0 | 1,085 |
var searchData=
[
['scurve3',['SCurve3',['../class_u_noise_interp.html#a22a2c02d3c1a30fca2907a2c3509d8d8',1,'UNoiseInterp']]],
['scurve5',['SCurve5',['../class_u_noise_interp.html#ada246d3dbbe6a2a61fe306253d64efaf',1,'UNoiseInterp']]],
['setangles',['SetAngles',['../class_u_rotate_point.html#a99a935b295c0afda4706... | NovanMK2/UnrealLibNoise | Documentation/html/search/functions_9.js | JavaScript | lgpl-3.0 | 6,411 |
export default [
{
name: 'hello-wold-functional',
displayName: 'Hello World (functional)',
directory: 'hello-world',
files: ['hello-world-functional.js']
},
{
name: 'hello-wold-class',
displayName: 'Hello World (class component)',
directory: 'hello-wor... | js-works/js-scenery | boxroom/archive/js-reactify_2018-04-27/src/demo/available-demos.js | JavaScript | lgpl-3.0 | 1,074 |
var structshyft_1_1timeseries_1_1d__ref__t_3_01_t_00_01typename_01enable__if_3_01is__shared__ptr_3_0a96d8130ed21daa23ed2d27c0d825333 =
[
[ "type", "structshyft_1_1timeseries_1_1d__ref__t_3_01_t_00_01typename_01enable__if_3_01is__shared__ptr_3_0a96d8130ed21daa23ed2d27c0d825333.html#a88ec5a232f62e1394dc393ac07b0096c"... | statkraft/shyft-doc | core/html/structshyft_1_1timeseries_1_1d__ref__t_3_01_t_00_01typename_01enable__if_3_01is__shared__ptr_3_0a96d8130ed21daa23ed2d27c0d825333.js | JavaScript | lgpl-3.0 | 331 |
/*
* 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/components/directives/dataerrorview/dataerrorview.directive.js | JavaScript | lgpl-3.0 | 1,078 |
Famono.scope('famous/surfaces/Gruntfile', ["load-grunt-tasks","time-grunt"], function(require, define) {
define(function() {
/*global module:false*/
/*Generated initially from grunt-init, heavily inspired by yo webapp*/
module.exports = function(grunt) {
'use strict';
// Load grunt tasks automatically
require(... | ricardogarcia/responsive-webapp | AudienceTool/.meteor/.famono-base/lib/famous/surfaces/Gruntfile.js | JavaScript | lgpl-3.0 | 819 |
import getURL from '../utils/getURL.js'
import getUserInfo from './getUserInfo.js'
import people from './people.js'
/**
@name $SP().getManager
@function
@category people
@description Return the manager for the provided user, as a People string
@param {String} [username] With or without the domain, and you c... | Aymkdn/SharepointPlus | src/people/getManager.js | JavaScript | lgpl-3.0 | 1,871 |
/**
* 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/test/resources/testApp/js/aikau/testing/mockservices/ListMockService.js | JavaScript | lgpl-3.0 | 3,106 |
var cats;
(function (cats) {
'use strict';
var initModule = function () {
};
var getCat = function () {
return "tabby";
};
cats.model = {
initModule: initModule,
getCat: getCat
};
})(cats || (cats = {}));
| henrjk/ts-js-module-pattern | app/cats.model.js | JavaScript | unlicense | 270 |
(function($, window, document, undefined) {
'use strict';
var gridContainer = $('#grid-container'),
filtersContainer = $('#filters-container'),
wrap, filtersCallback;
/*********************************
init cubeportfolio
*********************************/
gridC... | master-zhuang/SearchMax | backend/handler/web/assets/js/plugins/cube-portfolio/cube-portfolio-2-ns.js | JavaScript | unlicense | 3,401 |
// LauncherOSX
//
// Created by Boris Schneiderman.
// Copyright (c) 2012-2013 The Readium Foundation.
//
// The Readium SDK 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 Lice... | bjctw/SDKLauncher-Linux-Qt | res/host_app/js/readium_sdk.js | JavaScript | unlicense | 1,213 |
/*!
Waypoints - 4.0.0
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
*/
! function () {
"use strict";
function t(o) {
if (!o) throw new Error("No options passed to Waypoint constructor");
if (!o.element... | jvaane/www | js/jquery.waypoints.min.js | JavaScript | unlicense | 12,699 |
import { Application } from 'spectron';
import electron from 'electron-prebuilt';
import { assert } from 'chai';
import MockServer from '../util/mock-server';
import items from '../test-cases/items';
import models from '../test-cases/models';
describe('Creating an Item', function () {
this.timeout(10000);
let... | TheFourFifths/consus-client | test/functional/create-item.js | JavaScript | unlicense | 8,677 |
var Base64 = new function() {
this.encode = function(string) {
return window.btoa(string);
};
this.urlSafeEncode = function(string) {
return this.encode(string).replace('+', '-').replace('/', '_');
};
this.decode = function(base64) {
try {
return window.atob(base64.replace('-', '+').replac... | michenriksen/hackpad | assets/javascripts/application.js | JavaScript | unlicense | 11,479 |
// ==UserScript==
// @name Discussion Board Patch
// @namespace https://lms.rmit.edu.au/webapps/discussionboard
// @version 3
// @grant none
// @match https://lms.rmit.edu.au/webapps/discussionboard/do/message*
// @match https://lms.rmit.edu.au/webapps/discussionboard/do/forum*
// @match ... | ROBOTS-WAREZ/Discussion-Board-Patch.js | DBP.user.js | JavaScript | unlicense | 6,943 |
import {
categorySave,
categorySortSave,
categoryDel,
categoryGetById,
categoryGetList
} from '../platformApi';
const categoryModule = {
namespaced: true,
state: {
loading: false,
},
mutations: {
setLoading(state, val) {
state.loading = val;
},
... | lesenro/ggcms-CSharp | VueAdmin/src/modules/category.js | JavaScript | apache-2.0 | 1,521 |
import { isObject, isFunction, keys } from 'lodash';
// Removes all functions in an object so you can test
// against objects without errors
export const withoutFunctions = (obj) => {
if (!isObject(obj)) {
return obj;
}
let temp = {}
const _keys = keys(obj)
_keys.forEach((k) => {
if (isObject(obj[k]))... | veritone/veritone-sdk | packages/veritone-widgets/test/helpers/utils.js | JavaScript | apache-2.0 | 490 |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleinterns/step241-2020 | src/main/webapp/scripts/personalised-recommendations.js | JavaScript | apache-2.0 | 2,440 |
var detect = require('rtc-core/detect');
var extend = require('cog/extend');
var test = require('tape');
var expect = require('./helpers/expect-constraints');
var format = require('./helpers/format');
function mozMediaSource(type) {
return {
mozMediaSource: type,
mediaSource: type
};
}
test('share', expec... | rtc-io/rtc-captureconfig | test/share-constraints.js | JavaScript | apache-2.0 | 1,483 |
// Copyright 2006 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... | lucidsoftware/closure-library | closure/goog/net/xhrio.js | JavaScript | apache-2.0 | 45,131 |
var dir_4d08ff304006deda5c4a9fa99aae6a31 =
[
[ "java", "dir_8e445b0d87012ac190b46837b3341970.html", "dir_8e445b0d87012ac190b46837b3341970" ]
]; | onosfw/apis | onos/apis/dir_4d08ff304006deda5c4a9fa99aae6a31.js | JavaScript | apache-2.0 | 147 |
import {
PROBES_SCIENCE_QUERY,
PROBES_SCIENCE_SUB,
PROBES_SCIENCE_CONTACT_SUB,
} from "components/views/ProbeScience";
import systems from "../data/systems";
import sensors from "../data/sensors";
import sensorContacts from "../data/sensorContacts";
import {
PROBE_SCIENCE_CORE_QUERY,
PROBES_SCIENCE_CORE_SUB,
... | Thorium-Sim/thorium | src/mocks/cards/ProbeScience.mock.js | JavaScript | apache-2.0 | 2,270 |
var multiplayer = new function(){
this.players = [];
this.add_player = function(player){
console.log("new player");
var scale = [1,1,1];
var data = {};
data['x1'] = 0;
data['y1'] = 0;
elements.add_OBJ(link_mushroom_obj,link_tree_texture,data, scale,"opponent",false, player.id);
};
this.remove_player ... | lucas34/mushroom-hunter | core/javascript/multiplayer/socket.js | JavaScript | apache-2.0 | 1,464 |
define(function(require, exports, module) {
exports.init = function(){
Manager()
}
function Manager(){
$("#manager").click(function(){
location.href = $(this).attr("data-href");
});
}
}); | yuhaya/LocalServer | static/js/card/index.js | JavaScript | apache-2.0 | 242 |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import merge from 'deepmerge';
import {Platform} from 'react-native';
import {Navigation} from 'react-native-navigation';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
... | mattermost/mattermost-mobile | app/actions/navigation/index.test.js | JavaScript | apache-2.0 | 18,305 |
MapSearchApp.init = function () {
var realEstates = MapSearchApp.Repositories.realEstateRepository.getAll();
var pageView = new MapSearchApp.Views.PageView({
collection: realEstates
});
pageView.render();
$(".js-app").html(pageView.$el);
MapSearchApp.trigger("afterRender");
};
$(functi... | gawelczyk/ol-search-app | js/app.js | JavaScript | apache-2.0 | 357 |
(function(){
function CollectionCtrl(Fixtures){
this.albums = Fixtures.getCollection(12);
}
angular
.module('blocJams')
.controller('CollectionCtrl',['Fixtures', CollectionCtrl]);
})(); | albinoalligator/bloc-jams-angular | app/scripts/controllers/CollectionCtrl.js | JavaScript | apache-2.0 | 232 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | badlogicmanpreet/aura | aura-components/src/main/components/ui/inputDate/inputDateTest.js | JavaScript | apache-2.0 | 7,062 |
/**
* TODO: Rename. Refactor with VerticalLabelNames.
*/
Ext.define('HorizontalLabelNames', {
alias: "widget.HorizontalLabelNames",
extend: 'Ext.panel.Panel',
layout: 'absolute',
items: [
{
xtype: 'component',
autoEl: 'canvas',
itemId: 'canvas',
... | ppavlidis/aspiredb | aspiredb/src/main/webapp/scripts/lib/matrix2viz/js/HorizontalLabelNames.js | JavaScript | apache-2.0 | 2,001 |
var ns4 = (document.layers)? true : false;
var ie4 = (document.all)? true : false;
// var ie4 = (document.all && !document.getElementById)? true : false;
// var ie5 = (document.getElementById && document.all)? true : false;
var ns6 = (document.getElementById && !document.all)? true: false;
var w3c = (document.getElem... | chrisekelley/zeprs | web/zeprs/js/apgar.js | JavaScript | apache-2.0 | 10,823 |
import React, { PropTypes } from 'react';
import c from '../../pages/common.css';
import cx from 'classnames';
class ApplicationPanel extends React.Component {
static propTypes = {
handleChange: React.PropTypes.func,
value: React.PropTypes.string
};
render() {
const {handleChange, value} = this.pro... | priley86/labs-console | components/Canvas/ApplicationPanel.js | JavaScript | apache-2.0 | 788 |
/*
* Copyright 2013 Amadeus s.a.s.
* 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 i... | vcarle/ariatemplates | test/aria/templates/section/sectionAttributes/SectionAttributesTestCase.js | JavaScript | apache-2.0 | 3,140 |
(function () {
'use strict';
angular.module('xos.dashboardManager')
.directive('dashboardForm', function(){
return {
restrict: 'E',
scope: {},
bindToController: true,
controllerAs: 'vm',
templateUrl: 'templates/dashboard-form.tpl.html',
controller: function($stateParams, $... | zdw/xos | views/ngXosViews/dashboardManager/src/js/dashboard-form.directive.js | JavaScript | apache-2.0 | 4,386 |
// Get dependencies
const express = require('express');
const path = require('path');
const http = require('http');
const bodyParser = require('body-parser');
// Get our API routes
const api = require('./server/routes/api');
const app = express();
// Parsers for POST data
app.use(bodyParser.json());
app.use(bodyPars... | rdicharry/evolute | server.js | JavaScript | apache-2.0 | 966 |
const assert = require('assert');
const adminHelper = require('../common/admin-helper')();
const Config = require('../../lib/config/config');
const os = require('os');
const fs = require('fs');
const path = require('path');
const idGen = require('uuid62');
const yaml = require('js-yaml');
describe('REST: policies', ()... | ExpressGateway/express-gateway | test/rest-api/policies.test.js | JavaScript | apache-2.0 | 2,441 |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example100/index.html");
});
it('should format numbers', function() {
expect(element(by.id('number-default')).getText()).toBe('1,234.568');
expect(element(by.b... | LADOSSIFPB/nutrif | nutrif-web/lib/angular/docs/ptore2e/example-example100/default_test.js | JavaScript | apache-2.0 | 826 |
import React from 'react'
import { Component } from 'react'
import Select from 'react-select'
import './CategorySelect.scss'
export default class CategorySelect extends Component {
render() {
const {categories, value, onChange, handleBeingTouched, touched, error} = this.props
var options = catego... | tlisonbee/cerberus-management-service | dashboard/app/components/CategorySelect/CategorySelect.js | JavaScript | apache-2.0 | 1,135 |
import React from 'react';
import { BannerRow, H2, Button } from '@appbaseio/designkit';
import PropTypes from 'prop-types';
import { css } from 'react-emotion';
import { SecondaryLink } from '../styles';
const style = css`
p {
color: #ffffff;
font-weight: 300;
}
`;
const button = {
fontSize: '14px',
lineHeigh... | appbaseio/reactivesearch | site/src/components/BannerRow.js | JavaScript | apache-2.0 | 1,642 |
/*
* Copyright 2015 Red Hat 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... | grs/rhea | examples/send_raw.js | JavaScript | apache-2.0 | 2,096 |
function appointment(input)
{
Ti.include('/ui/common/helpers/dateTime.js');
Ti.include('/ui/common/database/users_db.js');
Ti.include('/ui/common/database/children_db.js');
Ti.include('/ui/common/database/relationships_db.js');
Ti.include('/ui/common/database/records_db.js');
Ti.include('/ui/common/database/in... | leokenner/SE-Android | Resources/ui/common/forms/appointment_form.js | JavaScript | apache-2.0 | 11,099 |
"use strict";
var chakram = require("chakram"),
util = require("util"),
curry = require("curry"),
Q = require("q"),
auth = require("../common/auth.js"),
common = require("./common.js"),
sharing = require("../sharing/common.js... | amida-tech/orange-api | test/patients/dump_patient_test.js | JavaScript | apache-2.0 | 9,896 |
let obj = {
@readonly firstName: "first",
@readonly lastName: "last",
@nonconfigurable fullName() {
return `${this.firstName} ${this.lastName}`;
}
};
/*
// Desugaring
//
// The following is an approximate down-level desugaring to match the expected semantics.
// The actual host impl... | rbuckton/ecmascript-mirrors | samples/objects.js | JavaScript | apache-2.0 | 945 |
/* Copyright 2017 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | rcassola/DigiCard | src/main/webapp/bower_components/pdfjs-dist/lib/test/unit/primitives_spec.js | JavaScript | apache-2.0 | 12,916 |
'use strict';
angular.module('moviefanApp')
.controller('LoginController', function ($rootScope, $scope, $state, $timeout, Auth) {
$scope.user = {};
$scope.errors = {};
$scope.rememberMe = true;
$timeout(function (){angular.element('[ng-model="username"]').focus();});
$scop... | ozkangokturk/moviefan | src/main/webapp/scripts/app/account/login/login.controller.js | JavaScript | apache-2.0 | 937 |
/*
* ../../../..//jax/input/MathML/entities/k.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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.or... | GerHobbelt/MathJax | jax/input/MathML/entities/k.js | JavaScript | apache-2.0 | 1,778 |
var clusterpost = require("clusterpost-lib");
var path = require('path');
var Promise = require('bluebird');
var argv = require('minimist')(process.argv.slice(2));
const os = require('os');
const fs = require('fs');
var agentoptions = {
rejectUnauthorized: false
}
clusterpost.setAgentOptions(agentoptions);
cons... | juanprietob/clusterpost | src/clusterpost-app/get.js | JavaScript | apache-2.0 | 5,412 |
'use strict';
angular.module('aquilaApp')
.config(function ($stateProvider) {
$stateProvider
.state('register', {
parent: 'account',
url: '/register',
data: {
roles: [],
pageTitle: 'register.title'
... | onpointtech/stack-reference | src/main/webapp/scripts/app/account/register/register.js | JavaScript | apache-2.0 | 919 |
/**
* 微信网页端调用JS
* @author dodge
* @contact dodgepudding@gmail.com
* @link http://blog.4wer.com/wechat-timeline-share
* @version 1.1
*
* 自定义分享使用:
* WeixinJS.hideOptionMenu() 隐藏右上角按钮
* WeixinJS.showOptionMenu() 显示右上角按钮
* WeixinJS.hideToolbar() 隐藏工具栏
* WeixinJS.showToolbar() 显示工具栏
* WeixinJS.getNetworkType() ... | selecterskyphp/weixin_award | Public/js/wechat.js | JavaScript | apache-2.0 | 9,639 |
var pulse = pulse || {};
pulse.NoteGroup = Backbone.Collection.extend({
model: pulse.Note,
});
| renfredxh/pulse | app/assets/javascripts/pulse-app/collections/noteGroup.js | JavaScript | apache-2.0 | 101 |
/*
* 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/wp-story-editor/src/components/mediaUpload/mediaPicker/test/useMediaPicker.js | JavaScript | apache-2.0 | 2,607 |
import { clamp, mean, isNaN, get, isArray } from 'lodash';
import update from 'immutability-helper';
import { helpers } from 'veritone-redux-common';
const { createReducer } = helpers;
export const PICK_START = 'PICK_START';
export const PICK_END = 'PICK_END';
export const RETRY_REQUEST = 'RETRY_REQUEST';
export const... | veritone/veritone-sdk | packages/veritone-widgets/src/redux/modules/filePicker/index.js | JavaScript | apache-2.0 | 6,708 |
/**
* @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 requir... | tommycli/lighthouse | lighthouse-core/test/audits/accessibility/aria-allowed-attr-test.js | JavaScript | apache-2.0 | 1,594 |
import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import vuetify from './plugins/vuetify';
import 'roboto-fontface/css/roboto/roboto-fontface.css'
import '@mdi/font/css/materialdesignicons.css'
import VueCompositionApi from "@vue... | FDSoftware/OpenEFI-Tuner | src/main.js | JavaScript | apache-2.0 | 483 |
/**
* @namespace export
*/
module.exports =
{
CmConfiguration: require('./CmConfiguration.js').CmConfiguration,
CmExporter: require('./CmExporter.js').CmExporter,
CmRenderer: require('./CmRenderer.js').CmRenderer,
CmTransformer: require('./CmTransformer.js').CmTransformer,
renderer: require('./ren... | entoj/entoj-export-cm | source/export/index.js | JavaScript | apache-2.0 | 392 |
import { setPropertiesFromJSON } from '../../json-helper';
import Entity from './Entity';
/**
* Generated class for shr.entity.Group.
* @extends Entity
*/
class Group extends Entity {
/**
* Get the entry information.
* @returns {Entry} The shr.base.Entry
*/
get entryInfo() {
return this._entryInf... | standardhealth/flux | src/model/shr/entity/Group.js | JavaScript | apache-2.0 | 3,110 |
import React from 'react';
export default () => {return <h1>Page Under Construction</h1>} | mrFlick72/mrFlick72.github.io | app/page/PageUnderConstruction.js | JavaScript | apache-2.0 | 90 |
// a Bar chart
Bridle.BarChart = function() {
var mode = 'stacked';
var margin = {
top : 50,
bottom : 100,
left : 100,
right : 100
};
var height = 400;
var width = 1000;
var xValue = function(d) {
return d.x;
};
var yValue = function(d) {
return d.y;
};
var nameValue =... | pearson-enabling-technologies/bridle | src/barChart.js | JavaScript | apache-2.0 | 15,544 |
document.write('2018年1月'); | kulend/Vino.Core.CMS | source/Ku.Core.CMS.Web.Backend/wwwroot/lib/data_location/version.js | JavaScript | apache-2.0 | 30 |
/**
* @fileoverview Utility to detect and address folder and file sharing which is broader than intended
* Removes overly broad permissions at folder level
* Notifies specified email of breaches
*/
function main() {
var user = Session.getActiveUser().getEmail();
var hostDomain = user.split('@')[1];
var permi... | demoforwork/public | DrivePermissionsScrubber/Scrub.js | JavaScript | apache-2.0 | 4,949 |
import Ember from 'ember';
export default Ember.Route.extend({
k8s: Ember.inject.service(),
model(params) {
return this.get('k8s').getService(params.name);
}
});
| nrvale0/ui | app/k8s-tab/namespace/services/service/route.js | JavaScript | apache-2.0 | 174 |
angular.module('elementBoxApp.products.productInfo')
.controller('ProductInfoCtrl', [
'$scope', '$rootScope', '$state', '$stateParams', '$timeout', 'ModalAlert', 'ProductsService', 'UserService', 'CommentsService', 'EVENT_NAMES',
function($scope, $rootScope, $state, $stateParams, $timeout, Modal... | mauroBus/element | client/src/app/products/product-info/product-info.controller.js | JavaScript | apache-2.0 | 4,089 |
var dir_40645110f4b881381ac11b52da3dfc1e =
[
[ "provider", "dir_9a95dbcede8719bb251f64fc00e6b0a1.html", "dir_9a95dbcede8719bb251f64fc00e6b0a1" ]
]; | onosfw/apis | onos/apis/dir_40645110f4b881381ac11b52da3dfc1e.js | JavaScript | apache-2.0 | 151 |
// @flow
import Spinner from '@atlaskit/spinner';
import React from 'react';
import { translate } from '../../base/i18n';
import { AbstractPage } from '../../base/react';
import { connect } from '../../base/redux';
import { openSettingsDialog, SETTINGS_TABS } from '../../settings';
import {
createCalendarClickedE... | bgrozev/jitsi-meet | react/features/calendar-sync/components/CalendarList.web.js | JavaScript | apache-2.0 | 7,243 |
'use strict';
const _ = require('lodash');
const serviceUtils = require('../serviceUtils');
/**
* @summary Retrieve a Coding System object.
* @param {String} source Abbreviation of the source coding system under test.
* @param {Function} callback Function called on process completion, with standard (err, resu... | vistadataproject/metaPureJS | services/lexiconService/lookupCodingSystem.js | JavaScript | apache-2.0 | 1,445 |
'use strict';
concertoPanel.service('TestWizardParam', ["$filter",
function ($filter) {
this.getTypeName = function (type) {
switch (parseInt(type)) {
case 0:
return Trans.TEST_WIZARD_PARAM_TYPE_SINGLE_LINE_TEXT;
case 1:
re... | campsych/concerto-platform | src/Concerto/PanelBundle/Resources/public/angularjs/app/concerto_panel/js/services/test_wizard_param_service.js | JavaScript | apache-2.0 | 17,666 |
/*
* forms.js: highlight form-related elements
*/
function initForms () {
addPolyfills();
let targetList = [
{selector: "button", color: "purple", label: "button"},
{selector: "input", color: "navy", label: "input"},
{selector: "keygen", color: "gray", label: "keygen"},
{selector: "m... | oaa-tools/bookmarklets-library | extension/library.js | JavaScript | apache-2.0 | 50,228 |
import * as utils from '../src/utils.js';
import {config} from '../src/config.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
const BIDDER_CODE = 'vdoai';
const ENDPOINT_URL = 'https://prebid.vdo.ai/auction';
export const spec = {
code: BIDDE... | tchibirev/Prebid.js | modules/vdoaiBidAdapter.js | JavaScript | apache-2.0 | 3,931 |
var auth = require( './auth' ),
surveyTemplate = require( '../lib/survey_template' ),
SurveyResponse = require( '../models/survey_response' );
var ExportController = function() {
this.csv = function( req, res ) {
var now = new Date(),
cleanTitle = req.survey.title.replace( /[^a-z0-9]/ig... | UCSoftware/responsive-pulse | controllers/export.js | JavaScript | apache-2.0 | 1,943 |
/******************************************************************************
* $URL: https://source.sakaiproject.org/svn/user/tags/sakai-10.1/user-tool/tool/src/webapp/js/userCreateValidation.js $
* $Id: userCreateValidation.js 308075 2014-04-11 12:34:16Z azeckoski@unicon.net $
***********************************... | harfalm/Sakai-10.1 | user/user-tool/tool/src/webapp/js/userCreateValidation.js | JavaScript | apache-2.0 | 4,100 |
define({"topics" : [{"title":"Local Buffer Resource Requirements","href":"datacollector\/UserGuide\/Origins\/OracleCDC.html#concept_atl_ytf_p1b","attributes": {"data-id":"concept_atl_ytf_p1b",},"menu": {"hasChildren":false,},"tocID":"concept_atl_ytf_p1b-d46e55285","topics":[]},{"title":"Uncommitted Transaction Handling... | rockmkd/datacollector | docs/generated/oxygen-webhelp/app/nav-links/json/concept_yqk_3hn_n1b-d46e55152.js | JavaScript | apache-2.0 | 537 |
/**
* Copyright 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | GoogleChromeLabs/detect-es-version | scripts/get-local-package-ecma-version-benchmark.js | JavaScript | apache-2.0 | 3,413 |
var gulp = require('gulp');
var karma = require('karma');
var fs = require('fs');
gulp.task('test', function() {
new karma.Server({configFile: __dirname + '/karma.conf.js', reporters: 'dots'}).start();
var content = fs.readFileSync('copyAndRenameTest.js');
console.log(content);
}); | mlaval/test-karma | gulpfile.js | JavaScript | apache-2.0 | 289 |
/**
* @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/math/base/special/csch/lib/index.js | JavaScript | apache-2.0 | 1,075 |
var Q = require("q")
Q.longStackSupport = true
function a() { Q.delay(100).done(b) }
function b() { throw new Error("foo") }
a()
// Error: foo
// at b (/path/to/snippets/q-longStack-after.js:5:22)
// From previous event:
// at a (/path/to/snippets/q-longStack-after.js:4:29)
// at Object.<anonymous> (/pat... | pmuellr/slides | 2014/04-debugging-node/snippets/q-longStack-after.js | JavaScript | apache-2.0 | 359 |
goog.provide('recoil.ui.widgets.table.LabelColumn');
goog.require('recoil.frp.Behaviour');
goog.require('recoil.frp.struct');
goog.require('recoil.ui.BoolWithExplanation');
goog.require('recoil.ui.widgets.LabelWidget');
goog.require('recoil.ui.widgets.table.Column');
/**
* @implements {recoil.ui.widgets.table.Colum... | evaks/recoil | src/ui/widgets/table/label_column.js | JavaScript | apache-2.0 | 2,400 |
var assert = require('assert');
describe('Array', function(){
describe('#indexOf()', function(){
it('should return -1 when the value is not present', function(){
assert.equal(-1, [1,2,3,4].indexOf(5));
});
});
});
| joaquindev/ponghtml5game-c-s | test/tests.spec.js | JavaScript | apache-2.0 | 233 |
var Location = function (jsonInFeed) {
var jsonContent = JSON.parse(jsonInFeed);
this.globalid = jsonContent.identifier[0].value;
this.name = jsonContent.name;
this.parentId = jsonContent.managingOrganization.reference;
this.fullName = function () {
var fullName = this.parent.fullName() + '... | openhie/mhero-synch | app/location.js | JavaScript | apache-2.0 | 870 |
/**
* 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... | lzanol/amphtml | build-system/app.js | JavaScript | apache-2.0 | 31,997 |
/**
* Created by jan on 20/10/14.
*/
function AccountManager() {
}
AccountManager.prototype.generateAmount = function () {
var s1 = Math.floor(Math.random() * 7) % 10;
var s2 = Math.floor(Math.random() * 7) % 10;
var s3 = Math.floor(Math.random() * 7) % 10;
var sum = s1 * 1000 + s2 * 100 + s3 * 10;... | janpalencar/g-transaction | js/AccountManager.js | JavaScript | apache-2.0 | 1,157 |
// increment the number below each time you push a new model version
// (forces rebuild on phone)
var current_migration_version = 1;
// create the tables if required
joli.models.migrate(current_migration_version);
joli.models.initialize();
| xavierlacot/xavccMobileApp | Resources/js/lib/install.js | JavaScript | apache-2.0 | 241 |
import { newRxTypeError, newRxError } from '../../rx-error';
import { getPreviousVersions } from '../../rx-schema';
/**
* checks if the migrationStrategies are ok, throws if not
* @throws {Error|TypeError} if not ok
*/
export function checkMigrationStrategies(schema, migrationStrategies) {
// migrationStrategies ... | pubkey/rxdb | dist/es/plugins/dev-mode/check-migration-strategies.js | JavaScript | apache-2.0 | 1,283 |
Template.favoritesPages.onCreated(function () {
var template = this;
template.subscribe('FavoritesPages');
});
Template.favoritesPages.helpers({
favoritesPages: function () {
if (Meteor.userId()) {
return Pages.find(
{ $or: [{ isPublic: true }, { owners: Meteor.userId() }, { users: Meteor.userI... | guidouil/gotlogin | client/favoritesPages/favoritesPages_script.js | JavaScript | apache-2.0 | 509 |
'use strict';
/**
* Expose 'NetworkTask'
*/
module.exports = NetworkTask;
/**
* Module dependencies
*/
var networkObject = require('./network-object');
var readLine = require('readline');
var childProcess = require('child_process');
/**
* Constants
*/
var NETWORK_TOPIC = 'monitor/network';
/**
* Constructo... | ArrowElectronics/aws-iot-dragonpulse-js | DragonBoard/src/lib/network/network-task.js | JavaScript | apache-2.0 | 7,159 |
'use strict';
/**
* @ngdoc object
* @name activityApp
* @requires $routeProvider
* @requires activityControllers
* @requires ui.bootstrap
*
* @description
* Root app, which routes and specifies the partial html and controller depending on the url requested.
*
*/
var app = angular.module('activityApp',
['... | du6/yourlittleone | src/main/webapp/js/app.js | JavaScript | apache-2.0 | 3,544 |