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
import BPromise from "bluebird"; import chai, {expect} from "chai"; import sinon from "sinon"; import sinonChai from "sinon-chai"; import chaiAsPromised from "chai-as-promised"; import {RpcError} from "lambda-rpc"; chai.use(chaiAsPromised); chai.use(sinonChai); import * as createUser from "methods/create-user"; desc...
innowatio/iwwa-lambda-users-producer
test/create-user.js
JavaScript
apache-2.0
4,138
// Test that queries with a sort on text metadata return results in the correct order in a sharded // collection. var st = new ShardingTest({shards: 2}); st.stopBalancer(); var mongos = st.s0; var shards = [st.shard0, st.shard1]; var coll = mongos.getCollection("foo.bar"); var admin = mongos.getDB("admin"); var cursor...
christkv/mongo-shell
test/jstests/sharding/fts_score_sort_sharded.js
JavaScript
apache-2.0
2,486
'use strict' angular.module('main.module') .controller('github-profile.controller', ['$scope', '$log', '$modalInstance', 'core-rest.service', 'github.service', function($scope, $log, $modalInstance, coreService, githubService) { var self = this; $scope.isLoggedIn = false; $scope.github = githu...
karamelchef/karamel
karamel-ui/src/main/resources/assets/karamel/github/github-profile.controller.js
JavaScript
apache-2.0
1,571
/**** Isotope Plugin ****/ jQuery(document).ready(function(){ "use strict"; var container = jQuery('#portfolio-grid'); container.isotope({ animationEngine : 'best-available', animationOptions: { duration: 200, queue: false }, layoutMode: 'fitRows' }); // filter items when filter link...
sharathvignesh/nowDrifting
js/portfolio.js
JavaScript
apache-2.0
6,642
var text = ""; var i; for (i = 0; i < 5; i++) { text += "The number is " + i + "<br>"; break; }
boalang/compiler
test/datagen/javascript/ForLoopWithBreakStatementNode.js
JavaScript
apache-2.0
103
/** * Copyright 2013 IBM Corp. * * 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 wr...
hansb001/NodeRed_drone
settings.js
JavaScript
apache-2.0
5,479
/** * 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...
azure-contrib/socket.io-servicebus
examples/timingtest/app.js
JavaScript
apache-2.0
1,996
function UserUtils(dialog) { // From http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state-%28type=email%29 this.emailRegex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?...
thexman/ldap-um
src/main/webapp/js/user-utils.js
JavaScript
apache-2.0
3,913
/** * @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/_tools/repl-txt/rules/resolvable-aliases/lib/main.js
JavaScript
apache-2.0
2,344
(function() { define(['./baseDirective'], function() { 'use strict'; return angular.module('compass.directives').directive('d3Treemap', function() { return { restrict: 'E', scope: { data: '=' }, link: function(scope, element, attrs) { var svg; ...
sharonlucong/compass-intel-rsa-dist
v2.5/target/src/app/directives/treeMapDirective.js
JavaScript
apache-2.0
1,814
'use strict'; const winston = require('winston'); const fs = require('fs'); const env = process.env.NODE_ENV || 'development'; const logDir = 'logs'; // Create the log directory if it does not exist if (!fs.existsSync(logDir)) { fs.mkdirSync(logDir); } const tsFormat = () => (new Date()).toLocaleTimeStri...
stoic1979/teammanager
helpers/logger.js
JavaScript
apache-2.0
740
/** * PostCSS config. * * Subscribe with Google, Copyright 2019 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 * * U...
subscriptions-project/swg-wordpress-plugin
postcss.config.js
JavaScript
apache-2.0
819
/** * @license * Copyright (C) 2017 The Android Open Source Project * * 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...
qtproject/qtqa-gerrit
polygerrit-ui/app/elements/admin/gr-admin-view/gr-admin-view.js
JavaScript
apache-2.0
8,933
/** * @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/math/base/special/floorb/examples/index.js
JavaScript
apache-2.0
1,094
/** * Kendo UI v2016.1.412 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
ytodorov/AntServices
AdvancedNetToolsSolution/AntWeb/Scripts/kendo/cultures/kendo.culture.ps.js
JavaScript
apache-2.0
6,861
/* eslint quotes: 0 */ export default { "advancedSearch": "詳細検索", "allCourses": "すべてのコース", "allTab": "すべて", "changeImage": "イメージの変更", "courseSearchInputPlaceholder": "コースの検索", "error.settingImage": "申し訳ありません。現在イメージを変更することはできません。後でもう一度試してください。", "filtering.noDepartments": "{department} フィルタがありません。", "filtering....
Brightspace/d2l-my-courses-ui
src/lang/ja.js
JavaScript
apache-2.0
2,143
app.cfg = { // // General UI // // Maximum number of sections MAX_NB_SECTIONS: 101, // Side and Floating panel dot navigation group size // Note: this has to be a size greater than the last page for the squarenav menu. // e.g. if last page is "Contact us" on item 43, this variable must be 44. DOTNAV_GROUPSIZ...
pleavin/map-journal-storytelling-template-js
src/app/config.js
JavaScript
apache-2.0
7,282
/*global QUnit*/ sap.ui.define([ "sap/ui/dt/ElementUtil", // controls "sap/m/Button", "sap/m/Input", "sap/m/Text", "sap/m/Label", "sap/m/IconTabFilter", "sap/m/IconTabBar", "sap/ui/layout/VerticalLayout", "sap/ui/layout/HorizontalLayout", "sap/ui/layout/form/FormElement", // should be last "sap/ui/thirdpa...
nzamani/openui5
src/sap.ui.dt/test/sap/ui/dt/qunit/ElementUtil.qunit.js
JavaScript
apache-2.0
16,688
+function(factory) { if (typeof define === 'function' && define.amd) { define('nytint-geoip', [], factory); } else { window.nytint_geoip = factory(); } }(function() { 'use strict'; var key = 'nyt-geoip', dom = document.getElementsByTagName('html'), //flag already_processed = false, ...
newsdev/geoip
frontend/geoip.js
JavaScript
apache-2.0
3,755
require.config({ paths: { astar: "utils/astar" } }); define( [ 'fp/fp-base', 'astar', 'fp/app-config' ], function( FiercePlanet, astar ) { /** * Represents a network of paths. Also provides factory and utility methods. * @constructor ...
liammagee/fp
public/js/fp/path-network.js
JavaScript
apache-2.0
7,632
/** * @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/assert/is-int32array/examples/index.js
JavaScript
apache-2.0
2,076
/************************************************************************** * 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 ...
alexkli/osgi-troubleshoot
src/main/resources/js/action-scroll.js
JavaScript
apache-2.0
1,094
var iliketo = $('#i-like-to'); var actionCount = 1; var actions = [ 'code', 'create', 'write', 'dream', 'design', 'tinker', 'explore', 'learn', 'adventure', 'invent', 'build', 'collaborate', 'travel' ]; function changeAction() { var index = (actionCount%(actions.length)); iliketo.fadeOut(...
schillingjerrid/schillingjerrid.github.io
js/custom.js
JavaScript
apache-2.0
1,019
'use strict'; const serviceUtils = require('../serviceUtils'); /** * @summary This ORVAA VAA Returns policy name for a veteran with VA Advantage. Otherwise returns 0. * @param {number} DFN patientId * @return {array} VAA name or 0 * @memberof patientService * @instance */ function getPatientVaa(patientId, conte...
vistadataproject/metaPureJS
services/patientService/getPatientVaa.js
JavaScript
apache-2.0
618
var debug = require('debug')('leetcoin'); var config = require('./config'); var request = require('request'); var crypto = require('crypto'); var FormUrlencoded = require('form-urlencoded'); function Server(params) { this.title = params.title; this.hostAddress = params.hostAddress; this.hostPort = params.hostPor...
porkchop/lc-mathquiz
leetcoin.js
JavaScript
apache-2.0
5,972
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Responsive from 'grommet/utils/Responsive'; import classnames from 'classnames'; import Article from './Article'; import Box from 'grommet/components/Box'; import Next from 'grommet/components/icons/...
karatechops/grommet-fsi
src/js/components/Home.js
JavaScript
apache-2.0
3,359
(function() { 'use strict'; var controllers = angular.module('opentele.controllers', [ 'opentele.controllers.changePassword', 'opentele.controllers.errors', 'opentele.controllers.header', 'opentele.controllers.login', 'opentele.controllers.measurements', 'opentel...
silverbullet-dk/opentele-client-html
app/areas/controllers.js
JavaScript
apache-2.0
706
/*jshint node: true, loopfunc: true */ /*globals describe: false, it: false */ 'use strict'; var expect = require('expect.js'), types = require('../../types'), BooleanLiteral = types.BooleanLiteral; describe('BooleanLiteral', function () { it('returns an expression', function () { var expr = new BooleanLiter...
arangodb/aqbjs
test/types/BooleanLiteral.js
JavaScript
apache-2.0
1,215
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Line } from 'react-chartjs-2'; import { connect } from 'react-redux'; class LineChart extends Component { render () { const { objectID, instanceID, resourceID } = this.props.chartProps; const chartData = []; let resou...
doemski/cblocks
src/client/components/LineChart.js
JavaScript
apache-2.0
2,750
var dir_b822c91725a3116836e8c3f128d11e11 = [ [ "ImageButtonRenderer.cs", "_x_labs_8_forms_8i_o_s_2_controls_2_image_button_2_image_button_renderer_8cs.html", [ [ "ImageButtonRenderer", "class_x_labs_1_1_forms_1_1_controls_1_1_image_button_renderer.html", "class_x_labs_1_1_forms_1_1_controls_1_1_image_button_r...
XLabs/xlabs.github.io
html/dir_b822c91725a3116836e8c3f128d11e11.js
JavaScript
apache-2.0
341
/* @flow */ import Select from '../../../../../../library/Select'; import { basicData as data } from '../../common/selectData'; export default { id: 'disabled', title: 'Disabled', description: `Use the \`disabled\` prop to indicate that the component is not available for interaction.`, scope: { data, Select },...
mineral-ui/mineral-ui
src/website/app/demos/Select/Select/examples/disabled.js
JavaScript
apache-2.0
376
// JavaScript Document var sliderTimer = sliderN = 0, sliderCount=5, className = ""; function Slider() { sliderCount= $(".banner li").size(); $(".banner li:not(:first-child)").hide(); $(".banner_box .next").click(function(){ sliderN++; $current_li=$(".banner li").filter(":visible"); if (sliderN >= sliderCount)...
tangdayi520github/www
statics/travel/js/index.js
JavaScript
apache-2.0
1,602
'use strict'; module.exports={ get createNavigationContainer(){return require('./createNavigationContainer').default;}, get StateUtils(){return require('./StateUtils').default;}, get PropTypes(){return require('./PropTypes').default;}, get addNavigationHelpers(){return require('./addNavigationHelpers').default;}, ...
aksharora/ReactNativeDemoBasic
node_modules/react-navigation/lib/react-navigation.js
JavaScript
apache-2.0
1,191
/** * Copyright (c) 2011 Tobias Pfeiffer * * 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 without limitation the rights * to use, copy, modify, merge, p...
grasscrm/gdesigner
editor/client/scripts/Plugins/umlsequence.js
JavaScript
apache-2.0
4,258
import Taro, { Component } from '@tarojs/taro' import PropTypes from 'prop-types'; import { View, Input } from '@tarojs/components' import { AtIcon } from 'taro-ui' import './searchBar.less' export default class SearchBar extends Component { static propTypes = { onClickSearch: PropTypes.func, } static def...
huangjianke/Gitter
src/components/search/searchBar.js
JavaScript
apache-2.0
1,160
/** * @author zhixin wen <wenzhixin2010@gmail.com> * extensions: https://github.com/vitalets/x-editable */ !function ($) { 'use strict'; $.extend($.fn.bootstrapTable.defaults, { editable: true, onEditableInit: function () { return false; }, onEditableSave: funct...
luanx/stat
stat-web/src/main/webapp/static/js/bootstrap-table-editable.js
JavaScript
apache-2.0
3,821
// ## RESOURCE.JS // **The private Resource module setups up the base resource CRUD methods. // All requests made on a resource are scoped, meaning they will send the // resouce's owner scope's API Key.** // **Another important feature is that if the resource has a class/entity, which // it allows to serialize and de...
chandruxp/evrythng-js-sdk
src/resource.js
JavaScript
apache-2.0
9,848
class JSONUtils { static stringify(value) { return JSON.stringify(value, JSONUtils.jsonifyType); } static parse(value) { return JSON.parse(value, JSONUtils.parseType); } static parseType(key, value) { if (value && value[JSONUtils.TYPE_SYMBOL]) { switch (value[JS...
nimiq-network/jungle-db
src/main/generic/utils/JSONUtils.js
JavaScript
apache-2.0
1,198
/** * Copyright 2017 OSBI Ltd * * 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 ...
OSBI/saiku-report-viewer-ui
src/config.js
JavaScript
apache-2.0
724
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by appli...
ONLYOFFICE/CommunityServer
web/studio/ASC.Web.Studio/addons/mail/js/mail.accountsmodal.js
JavaScript
apache-2.0
64,908
/*! * Copyright 2015 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 applica...
manfredzab/wwgc
www/js/CardboardBarrelDistortion.js
JavaScript
apache-2.0
3,478
"use strict"; module.exports = require('vulpejs')({ routes: { load: { first: ['index'] } }, models: { load: { first: ['user', 'history'] } }, database: { development: { host: 'activethread.com.br', name: 'samba', auth: { user: 'admin', pass: '...
lordfelipe/samba
app.js
JavaScript
apache-2.0
880
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // ******************************************************************* // - [#] indicates a test step (e.g. # Go to a screen) // - [*] indicates an assertion (e.g. * Check the title) // - Use element testID ...
mattermost/mattermost-mobile
detox/e2e/test/autocomplete/search.e2e.js
JavaScript
apache-2.0
2,150
import React from 'react'; import configureStore from 'redux-mock-store'; import Enzyme, { shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-15'; import HeaderToolbar from '../HeaderToolbar/HeaderToolbar'; Enzyme.configure({ adapter: new Adapter() }); const mockStore = configureStore(); const store ...
PulseTile/PulseTile-React
src/components/containers/Header/__tests__/HeaderToolbar.test.js
JavaScript
apache-2.0
2,494
var WEATHER_GEO_LOCATION = "Mountain View"; var OPENWEATHERMAP_API_KEY = "OpenWeatherMap key"; var NEWS_API_KEY = "News API key";
MistriHD/Reflect
config/config.js
JavaScript
apache-2.0
130
/* Slide Factory or Slide Service is responsible for all CRUD operation on Slides of a User Provides method to get, create, list, search slides of a specific user, because slides always belong to a user */ angular.module('tattva') .factory('slideFactory', ['$http','AuthService', function($http,AuthService) { ...
stackroute/LogAggregatorRT
tattvaclient/dashboard/factory/slidefactory.js
JavaScript
apache-2.0
6,743
/* var pk=1; $(".title th").click(function(){ // 把要排序的内容添加到数组里 var tIndex=parseInt($(this).index()); var valueArray=new Array(); var p=0; for(var i=1; i<$("table tr").length; i++){ if(tIndex!=0){ valueArray[p]=parseInt($("table tr:eq("+i+") td").eq(tIndex).html()); }else{ valueArray[p]=$("table tr:eq("+i+") ...
js-wei/phpcms
Public/Admin/scripts/jquery.sort.min.js
JavaScript
apache-2.0
1,109
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /*jslint node: true */ 'use strict'; // Variables const api = require('../api'); // Export module module.exports = { /** * Return middleware function * * @returns {Function} */ middleware: function () { return functi...
eq-inc/eq-web
lib/middleware/api.js
JavaScript
apache-2.0
838
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2015, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
fasrc/one
src/sunstone/public/app/console/vnc.js
JavaScript
apache-2.0
5,515
/* * Copyright © 2016 Cask Data, 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 t...
caskdata/cdap
cdap-ui/app/cdap/services/WizardStores/Informational/InformationalStore.js
JavaScript
apache-2.0
1,619
$(function() { $('#bundler').on('click', function() { window.location.href = "bundler.html" }); $('#bundlee').on('click', function() { window.location.href = "bundlee.html" }); });
Sailer43/Bundle_Web
src/scripts/index.js
JavaScript
apache-2.0
212
/** * @author tdz * @date 2017年3月20日 下午4:36:51 * */ var db = CONSTANTS.txnplte.indice || 'txnplte_pay'; var table = CONSTANTS.txnplte.table || 'TXNPLTE_LOG'; var pageNo = CONSTANTS.pageNo || 1; var pageSize = CONSTANTS.pageSize || 15; $(document).ready(function() { var now = new Date(); $('#endTime').val(pars...
tokings/loganalysis
loganalysis.webapp-0.1.1/src/main/webapp/js/page/query/txnplte.js
JavaScript
apache-2.0
5,787
import React, { PropTypes } from 'react' import { connect } from 'react-redux' const LabeledSelect = ({ data, value, getValue, onChange, label, renderer = (item) => item.get('name') }) => ( <div className='form-group'> <label className='col-sm-2 control-label'>{label}</label> <div className='col-sm-10'> ...
mkrajnak/ovirt-web-ui
src/labeledSelect.js
JavaScript
apache-2.0
898
var x=x||{};x.mdns=x.mdns||{}; x.mdns.DNS_SD=function(){var D=function(){this.data=this.length=this.ttl=this.class=this.type=this.name=null};D.prototype.resolveData=function(a){this.data=a};D.prototype.toJSON=function(){return this};var E=function(){this._info={}};E.prototype.resolveData=function(a,b,c,d){for(b=0;b<a.l...
jens-maus/RaspberryMatic
buildroot-external/package/neoserver/pkg/mediola/neo_server/node_modules/x.mdns.js
JavaScript
apache-2.0
16,599
import { isString, isArray, isObjectLike, isNumber } from 'lodash-es'; /** * A recursive method to parse and retrieve an error string from a BE response * Since the BE seems to be having different response format for errors in * different endpoints * * Usage: import { getErrorMessage } from 'open-event-frontend/u...
CosmicCoder96/open-event-frontend
app/utils/errors.js
JavaScript
apache-2.0
1,315
/** * 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...
alexryndin/ambari
ambari-web/app/views/common/helpers/status_icon_view.js
JavaScript
apache-2.0
1,993
class HomeController { index() { return 'basic-example:home'; } } module.exports = new HomeController();
gauntface/hopin
test/static-examples/basic-example/controllers/HomeController.js
JavaScript
apache-2.0
114
const fs = require('fs'); const path = require('path'); const getOptions = require('../utils/getOptions.js'); jest.mock('fs', () => { return Object.assign( {}, jest.requireActual('fs'), { existsSync: jest.fn().mockReturnValue(true) } ) }); // Mock return of require('/package.json') // Virtu...
palmerj3/jest-junit
__tests__/getOptions.test.js
JavaScript
apache-2.0
1,734
(function(ADL){ ADL.activityTypes = { "assessment": "http://adlnet.gov/expapi/activities/assessment", "attempt": "http://adlnet.gov/expapi/activities/attempt", "course": "http://adlnet.gov/expapi/activities/course", "file": "http://adlnet.gov/expapi/activities/file", "interaction": "htt...
ljwolford/xAPIWrapper
src/activitytypes.js
JavaScript
apache-2.0
1,053
'use strict'; angular.module('excelApp') .factory('User', function ($resource) { return $resource('/api/users/:id/:controller', { id: '@_id' }, { changePassword: { method: 'PUT', params: { controller:'password' } }, get: { method: 'GET', ...
keerthisamireddy/CoE
client/components/auth/user.service.js
JavaScript
apache-2.0
386
const preprints = `Preprints`; const brand = `OSF ${preprints}`; export default { global: { share: `Share`, complete: `Complete`, cancel: `Cancel`, discard: `Discard changes`, back: `Back`, prev: `Prev`, next: `Next`, none: `None`, abstract: `...
pattisdr/ember-preprints
app/locales/en/translations.js
JavaScript
apache-2.0
16,949
(function(jQuery) { "use strict"; if (Echo.AppServer.Dashboard.isDefined("Echo.Apps.TopicRadar.Dashboard.InstanceList.Instance")) return; var instance = Echo.AppServer.Dashboard.manifest("Echo.Apps.TopicRadar.Dashboard.InstanceList.Instance"); instance.inherits = Echo.Utils.getComponent("Echo.Apps.TopicRadar.Dashboa...
EchoAppsTeam/EchoTopicRadar
src/dashboard/instance-list/instance.js
JavaScript
apache-2.0
2,000
var classadbase_1_1_tcp_worker = [ [ "TcpWorker", "d9/d62/classadbase_1_1_tcp_worker.html#ae978a22837eb1749cbcecb4d5e3211bd", null ], [ "~TcpWorker", "d9/d62/classadbase_1_1_tcp_worker.html#ab513f2d83ab164ff78c86730c32641d6", null ], [ "connectionCookiePrefix", "d9/d62/classadbase_1_1_tcp_worker.html#aa4ce1...
weiboad/adbase
docs/d9/d62/classadbase_1_1_tcp_worker.js
JavaScript
apache-2.0
1,450
$(function(){ $.SPA.init({ debug: true, maxOpenPages: 10, onInit:function() { $(".theme-switcher").themeSwitcher({ themeBase:"/static/theme", cookiePrefix:"spa-accordion" }); $("#domain1-accordion").accordion({ fillSpace: true }); $('.tabpages').tabpages('openTab', { ...
ruoyousi/js-spa
client/static/js/spa-accordion.js
JavaScript
apache-2.0
610
/******************* * dv-template v0.2 * 2015, devvoh.com, https://github.com/devvoh/dv-template * * common.js is for your site-specific scripts */
devvoh/dv-template
js/common.js
JavaScript
artistic-2.0
154
function confirm_n_ary_operation(form, operation) { var origin = // location.origin; // GRR - not supported by MSIE9 location.protocol + '//' + location.host; var pathname = location.pathname.replace(new RegExp(operation+'$'), 'count_where.json'); var ...
damil/App-AutoCRUD
lib/App/AutoCRUD/share/static/js/autocrud_utils.js
JavaScript
artistic-2.0
1,148
/* Copyright 2014 Temasys Communications Pte Ltd */ /* https://github.com/Temasys/AdapterJS/blob/master/LICENSE */ /* https://github.com/Temasys/AdapterJS */ var RTCPeerConnection = null; var getUserMedia = null; var attachMediaStream = null; var reattachMediaStream = null; var webrtcDetectedBrowser = null; function ...
errietta/WebMeetUs
js/adapter.js
JavaScript
artistic-2.0
3,251
app.controller('communityBRsC', function($http, $window){ var self = this, allBRsURL = '/api/app/bingethers/', commentByPostBaseURL = '/api/app/comments/'; self.brs = []; // API call for all active Bingers self.getCommunityBRs = function(){ $http.get( allBRsURL ) .then( ...
SavenR/Bingether
jsframework/static/jsframework/js/ng/controllers/communityBRsCtrlr.js
JavaScript
artistic-2.0
3,837
/** * @author Nick Sullivan */ /* function InputMonitorBase(){ } InputMonitorBase.prototype.initilise = function(){}; //---------------------------------------------------------------------------------------- function MouseMonitor(){ } MouseMonitor.prototype.initilise = function(){}; function KeyBoardMo...
NSDesign/NSDesign.draw.github.io
Drawing_App/WebContent/js/inputmonitor.js
JavaScript
artistic-2.0
1,477
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.indexof es5id: 15.4.4.14-1-1 description: Array.prototype.indexOf applied to undefined throws a TypeError ---*/ assert.throws(TypeError, function() { ...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
JavaScript
bsd-2-clause
367
// This file was procedurally generated from the following sources: // - src/annex-b-fns/eval-global-skip-early-err-block.case // - src/annex-b-fns/eval-global/indirect-switch-dflt.template /*--- description: Extension not observed when creation of variable binding would produce an early error (Block statement) (Funtio...
sebastienros/jint
Jint.Tests.Test262/test/annexB/language/eval-code/indirect/global-switch-dflt-eval-global-skip-early-err-block.js
JavaScript
bsd-2-clause
1,328
analytics_app.directive('exportCsv', function() { return { controller: 'ExportController', restrict: 'E', replace: true, templateUrl: 'static/ng-app/directives/export_csv.html' }; });
whitews/BAMA_Analytics
static/ng-app/directives/export_csv.js
JavaScript
bsd-2-clause
223
// This file was procedurally generated from the following sources: // - src/dstr-assignment/obj-rest-symbol-val.case // - src/dstr-assignment/default/for-of.template /*--- description: RestBindingInitialization creates a new object if lhs is a Symbol (For..of statement) esid: sec-for-in-and-for-of-statements-runtime-s...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/for-of/dstr-obj-rest-symbol-val.js
JavaScript
bsd-2-clause
1,346
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case // - src/dstr-binding/default/func-decl-dflt.template /*--- description: Trailing comma is allowed following BindingPropertyList (function declaration (default parameter)) esid: sec-function-d...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/function/dstr-dflt-obj-ptrn-prop-ary-trailing-comma.js
JavaScript
bsd-2-clause
1,740
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-rest-not-final-id.case // - src/dstr-binding/default/for-of-var.template /*--- description: Rest element (identifier) may not be followed by any element (for-of statement) esid: sec-for-in-and-for-of-statements-runtime-se...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/for-of/dstr-var-ary-ptrn-rest-not-final-id.js
JavaScript
bsd-2-clause
1,693
angular.module('ng-nsa',[]). directive('nsaAutoComplete',function() { return { restrict : 'EA', scope : {source : '='}, link : function(scope,element,attrib) { scope.$watch('source',function(newVal,OldVal) { element.autocomplete({ source: newVal, messages: { noResul...
nuwansa/angular-autocomplete
nsa-ng-autocomplete.js
JavaScript
bsd-2-clause
401
'use strict'; var _ = require('lodash'), buster = require('buster'); var lewd = require('../../src/lewd'), errorMessages = require('../../src/messages'), helper = require('./../helper'); var assert = buster.referee.assert, refuteValues = helper.refuteValues, acceptValues = helper.acceptValues, ...
pigulla/lewd
test/condition/array-condition-test.js
JavaScript
bsd-2-clause
4,437
var PROD = (process.env.NODE_ENV === 'production') var TARGET_DIR = PROD ? __dirname + "/dist/" : __dirname + "/build/"; var fs = require("fs"); var webpack = require('webpack'); var LicenseWebpackPlugin = require('license-webpack-plugin').LicenseWebpackPlugin; var MiniCssExtractPlugin = require('mini-css-extract-plu...
Melown/vts-browser-js
webpack.config.js
JavaScript
bsd-2-clause
5,113
import React from "react"; import { Button } from "react-materialize"; import { getColor } from "./colorThemes"; const TextButton = ({ text, tooltip, onClick, menuTheme, isDarkModeOn }) => { return ( <Button style={{ backgroundColor: getColor(menuTheme, "button", isDarkModeOn), color: "#FFF...
nmamano/WallWars
frontend/src/shared/TextButton.js
JavaScript
bsd-2-clause
492
// This file was procedurally generated from the following sources: // - src/class-fields/literal-names.case // - src/class-fields/productions/cls-decl-after-same-line-static-async-gen.template /*--- description: Literal property names (field definitions after a static async generator in the same line) esid: prod-Field...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/class/fields-after-same-line-static-async-gen-literal-names.js
JavaScript
bsd-2-clause
1,812
// This file was procedurally generated from the following sources: // - src/function-forms/rest-params-trailing-comma-early-error.case // - src/function-forms/syntax/cls-decl-async-meth.template /*--- description: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (class declaration async m...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/class/async-meth-rest-params-trailing-comma-early-error.js
JavaScript
bsd-2-clause
2,032
/** * Created by Mauriel on 2/6/2017. */ $(document).ready(function () { $(".clipboard-copy").click(function (e) { var copyTarget = $(this).attr("data-target"); copyToClipboard(document.getElementById(copyTarget), e); }); }); function copyToClipboard(elem, event) { // create hidden text ...
FescueFungiShare/hydroshare
theme/static/js/copyToClipboard.js
JavaScript
bsd-3-clause
1,974
(function() { "use strict"; var root = this, Chart = root.Chart, helpers = Chart.helpers; // Default config for a category scale var defaultConfig = { display: true, position: "bottom", id: "x-axis-1", // need an ID so datasets can reference the scale // grid line settings gridLines: { show: tru...
KIZI/EasyMiner-XML
transformations/guhaPMML2HTML/js/chart.js/src/scales/scale.category.js
JavaScript
bsd-3-clause
9,200
dojo.addOnLoad(function(){ doh.register("dojox.mobile.test.ToolBarButton", [ function test_Heading_Verification(){ var demoWidget = dijit.byId("btn1"); doh.assertEqual('Edit', demoWidget.labelNode.innerHTML, "id= "+ demoWidget.domNode.id); demoWidget = dijit.byId("dojox_mobile_ToolBarButton_0"); doh.as...
kitsonk/expo
src/dojox/mobile/tests/doh/ToolBarButton.js
JavaScript
bsd-3-clause
7,368
import { EventEmitter, Platform, UnavailabilityError } from '@unimodules/core'; import ExpoScreenOrientation from './ExpoScreenOrientation'; import { Orientation, OrientationLock, WebOrientationLock, WebOrientation, SizeClassIOS, } from './ScreenOrientation.types'; export { Orientation, OrientationLock, WebOrientationL...
exponent/exponent
packages/expo-screen-orientation/build/ScreenOrientation.js
JavaScript
bsd-3-clause
7,754
angular.module('os.biospecimen.visit.spr', ['os.biospecimen.models']) .controller('VisitSprCtrl', function($scope, $sce, visit, Alerts) { function init() { $scope.sprUploader = {}; $scope.sprUrl = $sce.trustAsResourceUrl(visit.getSprUrl()); $scope.sprName = visit.sprName; $scope.uploadMod...
asamgir/openspecimen
www/app/modules/biospecimen/participant/visit/spr.js
JavaScript
bsd-3-clause
863
/* * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain the above copyright * notice, th...
vadimtk/chrome4sdp
ui/webui/resources/wml/swe_wml.js
JavaScript
bsd-3-clause
26,418
import { StyleSheet } from "react-native"; import sharedStyles from "./shared"; const styles = StyleSheet.create({ ...sharedStyles, credits: { ...sharedStyles.credits, lineHeight: 17 }, text: { ...sharedStyles.text, lineHeight: 17 } }); export default styles;
newsuk/times-components
packages/caption/src/styles/index.js
JavaScript
bsd-3-clause
288
define([ 'react', /* ======== */ './resources/Footer.scss' ], function (React) { return React.createClass({ render: function () { return ( <div className="c-footer_--_ m-t-58"> <div className="ui inverted vertical footer blue segment"> <div className="ui container"> ...
cod3rkane/project
public/a/js/components/Footer.js
JavaScript
bsd-3-clause
874
import { LightningElement, wire, track, api } from "lwc"; import { refreshApex } from "@salesforce/apex"; import { ShowToastEvent } from "lightning/platformShowToastEvent"; // Controllers import getRelationshipSettingsVModel from "@salesforce/apex/RelationshipSettingsController.getRelationshipSettingsVModel"; import g...
SalesforceFoundation/HEDAP
force-app/main/default/lwc/relationshipSettings/relationshipSettings.js
JavaScript
bsd-3-clause
13,769
var cdb = require('cartodb.js'); var _ = require('underscore'); var $ = require('jquery'); var TwitterCategoriesCollection = require('./twitter-categories-collection'); var TwitterCategoriesModel = require('./twitter-category-model'); var TwitterCategoryView = require('./twitter-category-view'); /** * Twitter catego...
codeandtheory/cartodb
lib/assets/javascripts/cartodb3/components/modals/add-layer/content/imports/import-twitter/twitter-categories/twitter-categories-view.js
JavaScript
bsd-3-clause
4,277
import fibonacci from '../../src/fibonacci'; describe('fibonacci', () => { let fib; beforeEach(() => { fibonacci.__Rewire__('throws', () => {}); fib = fibonacci(); }); it('should return the correct sequence', () => { let [a, b, c, d, e, f, g] = fib; expect(a).to.eq(0); expect(b).to.eq(1); ...
do0g/node-es2015-starter
test/spec/fibonacci-spec.js
JavaScript
bsd-3-clause
451
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"vega-rainbow-9","name":"vega-rainbow-9-1","rgb":[191,60,175]},{"group":"vega-rainbow-9","name":"vega-rainbow-9-2","rgb":[254,75,...
netbek/chrys
illustrator/vega-rainbow-9.js
JavaScript
bsd-3-clause
14,285
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; var React = require('react'); var Fluxible = require('fluxible'); var fetchrPlugin = require('fluxible-plugin-fetchr'); var routrPlugin = require('fluxible-plugin-routr'); ...
michaelBenin/flux-examples
chat/app.js
JavaScript
bsd-3-clause
785
var assert = require('assert') var cv = require("../build/Release/cloudcv"); exports['test cv.getBuildInformation'] = function() { assert.isNotNull(cv.buildInformation()); };
RafaelKozar/CLCVBack
test/buildInformation.js
JavaScript
bsd-3-clause
179
import markupToRegex from './markupToRegex' describe('#markupToRegex', () => { it('it should generate a regex that matches the markup for the given pattern', () => { const regex = markupToRegex('@[__display__](foo:__id__)') const [mention, display, id] = regex.exec('Hi @[Foo](foo:1), how are you?') exp...
effektif/react-mentions
src/utils/markupToRegex.spec.js
JavaScript
bsd-3-clause
1,201
// listen click, open modal and .load content $('#modalButton').click(function (){ $('#modal').modal('show') .find('#modalContent') .load($(this).attr('value')); }); // serialize form, render response and close modal function submitForm($form) { $.post( $form.attr("action"...
selimppc/dms
web/scripts/main.js
JavaScript
bsd-3-clause
710
// Copyright 2015 The Vanadium Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. var blessingMatches = require('./access/blessing-matching'); var vError = require('./../gen-vdl/v.io/v23/verror'); module.exports = defaultAuthorizer; f...
vanadium/js
src/security/default-authorizer.js
JavaScript
bsd-3-clause
920
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ // Note: t...
magic-FE/create-magic-component
packages/magic-scripts/utils/createJestConfig.js
JavaScript
bsd-3-clause
1,541
WCT.loadSuites([ 'paper-menu-button.html' ]);
fuzzdota/chromeapp-native-messaging-sample
app/bower_components/paper-menu-button/test/index.html.0.js
JavaScript
bsd-3-clause
63