code
stringlengths
2
1.05M
repo_name
stringlengths
5
114
path
stringlengths
4
991
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
/** * Copyright (C) 2014 TopCoder Inc., All Rights Reserved. * @version 1.1 * @author Sky_, TCSASSEMBLER * changes in 1.1: * 1. change handleError. Return sql error with unique constrains as Bad Request. * 2. close db when request ends. * 3. don't create transactions for GET requests */ "use strict"; var _ = r...
elkhawajah/NTL-Solution-Mechanism-Guide
helpers/logging.js
JavaScript
apache-2.0
6,051
'use strict'; var mongoose = require('mongoose'); var mongoose_uuid = require('mongoose-uuid'); var mongoose_relationship = require('mongoose-relationship'); function tierModel () { var tierSchema = mongoose.Schema({ environment: { type: String, ref: 'Environment', childPath: 'tiers', index: true }, platfo...
converged/imperator
models/tier.js
JavaScript
apache-2.0
1,276
// Copyright 2012, 2013 Patrick Wang <kk1fff@patrickz.net> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
kk1fff/album-generator
template-interface.js
JavaScript
apache-2.0
6,516
var gId = '#dataGrid'; var lastIndex; $(document).ready(function(){ //列表 $(gId).datagrid({ url:getUrlOpt(), idField:'id', fitColumns:true, frozenColumns:[[ {field:'ck',checkbox:true} ]], columns:[ getTableHeadOpt(), getColumnsOpt(), getTotal() ], rownumbers:true, pag...
shenzeyu/recommend
src/main/webapp/scripts/formcenter/orderform/salesummary/list_salesummary.js
JavaScript
apache-2.0
5,021
module.exports = require('./lib/SimpleNodeDb');
darrylwest/simple-node-db
index.js
JavaScript
apache-2.0
49
/*! * ${copyright} */ // Provides control sap.m.ColumnListItem. sap.ui.define([ "sap/ui/core/Element", "sap/ui/core/library", "./library", "./ListItemBase", "./ColumnListItemRenderer", "sap/ui/thirdparty/jquery", // jQuery custom selectors ":sapFocusable", ":sapTabbable" "sap/ui/dom/jquery/Selectors" ], fun...
SAP/openui5
src/sap.m/src/sap/m/ColumnListItem.js
JavaScript
apache-2.0
9,887
//// [tests/cases/compiler/importHelpersWithLocalCollisions.ts] //// //// [a.ts] declare var dec: any, __decorate: any; @dec export class A { } const o = { a: 1 }; const y = { ...o }; //// [tslib.d.ts] export declare function __extends(d: Function, b: Function): void; export declare function __decorate(decorat...
kpreisser/TypeScript
tests/baselines/reference/importHelpersWithLocalCollisions(module=amd).js
JavaScript
apache-2.0
1,051
new require('styles/dark') module.exports = class extends require('base/app'){ prototype(){ this.tools = { Rect:require('shaders/quad'), Code: require('views/code').extend({ w:'100#', h:'100%' }) } } constructor(){ super() //this.code = new this.Code(this, {text:require('/examples/tiny.j...
makepad/makepad.github.io
platform/tests/codetest.js
JavaScript
apache-2.0
664
/* global document */ import test from 'ava' import { $ } from '../lib/traversal.js' import { addClass, removeClass, css, chain } from '../lib/manipulation.js' test.beforeEach(() => { document.body.innerHTML = '' }) /** * addClass */ test('addClass', t => { t.is(typeof addClass, 'function') }) test('addClass ...
mechanoid/cathedral
test/manipulation-test.js
JavaScript
apache-2.0
2,723
var util = require('../../../utils/util.js'); var check = require('../../../utils/check.js'); var api = require('../../../config/api.js'); var app = getApp(); Page({ data: { array: ['请选择反馈类型', '商品相关', '功能异常', '优化建议', '其他'], index: 0, content: '', contentLength: 0, mobile: '', hasPicture: fal...
leiphp/100txy
pages/ucenter/feedback/feedback.js
JavaScript
apache-2.0
4,159
define( "dojo/cldr/nls/en-ie/gregorian", //begin v1.x content { "dateFormatItem-Md": "d/M", "dateFormatItem-yMEd": "EEE, d/M/yyyy", "timeFormat-full": "HH:mm:ss zzzz", "timeFormat-medium": "HH:mm:ss", "dateFormatItem-yyyyMMMM": "MMMM y", "dateFormatItem-MEd": "E, d/M", "dateFormat-medium": "d MMM y", "dateForma...
WASdev/skunkworks.libertycar
LibertyCar/WebContent/remote/dojo-release-1.7.4/dojo/cldr/nls/en-ie/gregorian.js
JavaScript
apache-2.0
680
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development Company, L.P. import path from 'path'; import fecha from 'fecha'; import lunr from 'lunr'; import GithubPostDAO from '../persistance/GithubPostDAO'; import PostDAO from '../persistance/PostDAO'; export function loadPosts () { return new PostDAO().ge...
grommet/grommet-blog
server/utils/post.js
JavaScript
apache-2.0
4,081
"use strict"; var net = require('net'); var events = require('events'); var util = require('util'); var async = require('async'); var tls = require('tls'); var Encoder = require('./encoder.js'); var writers = require('./writers'); var requests = require('./requests'); var streams = require('./streams'); var utils = re...
lucasrpb/com-github-lucasrpb-drivers-cassandra
node_modules/cassandra-driver/lib/connection.js
JavaScript
apache-2.0
20,399
/* * Copyright (C) 2010 Chandra Sekar 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 ag...
tuxychandru/grasshopper
grasshopper/lib/context.js
JavaScript
apache-2.0
16,361
/* Copyright 2014 Open Ag Data Alliance * * 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 agr...
OADA/oada-error-js
error.js
JavaScript
apache-2.0
3,734
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app'; ReactDOM.render(<App />, document.getElementById('main'));
jiaola/marc-editor
src/js/main.js
JavaScript
apache-2.0
158
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
helix46/solsof-ng2
app/components/transaction/transaction.component.js
JavaScript
apache-2.0
12,623
ConstructIndex(); //non ui for(let B of Bakteriler) { AddBacteriaToDisplay(B);//sadece isimler ve aileler //only ui with variables BakteriRouterSearch(B); //non ui + } ConstructBottomPanel(); //only ui with variables IndexFamilies(); //non ui PremakeLeftPanel(); //only ui if(HaveNotification) { document.que...
occ55/Mikrobiyoloji
init.js
JavaScript
apache-2.0
472
'use strict'; const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CleanWebpackPlugin = require('clean-webpack-plugin'); module.exports = { debug: true, context: path.join(__dirname, '/client'), entry: { app: './index.js', }, output: { path: path.join(__dirna...
seanjh/mochi
webpack.config.js
JavaScript
apache-2.0
1,155
/** * Copyright 2016 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...
shawnbuso/amphtml
extensions/amp-a4a/0.1/amp-a4a.js
JavaScript
apache-2.0
66,004
var jms_response_time20150206184935 = [ [ 'Time', 'Minimum', 'Maximum', 'Average', 'Result' ] ]; var offset = (new Date()).getTimezoneOffset() * 60 * 1000; jms_response_time20150206184935.push([new Date(1492 + offset), 0.750176, 219.364885, 2.448107105121296, 1.027068]); jms_response_time20150206184935.push([new Date(...
PerfCake/Demos
DevConf2015/sample-results/jms-threads-gc/data/jms_response_time20150206184935.js
JavaScript
apache-2.0
6,033
/* * jQuery - New Wave Javascript * * Copyright (c) 2006 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2006-10-27 23:14:48 -0400 (Fri, 27 Oct 2006) $ * $Rev: 509 $ */ // Global undefined variable window.undefined = window....
keil/TbDA
test/jquery1/jquery.js
JavaScript
apache-2.0
47,181
/** * @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/minmaxabs/test/test.js
JavaScript
apache-2.0
8,786
/*global QUnit*/ sap.ui.define([ "sap/ui/test/opaQunit", "./pages/Home", "./pages/Overview" ], function (opaTest) { "use strict"; QUnit.module("Home"); opaTest("Should see the homepage displayed", function (Given, When, Then) { // Arrangements Given.iStartMyApp({ hash: "" }); // Assertions Then.o...
SAP/openui5
src/sap.m/test/sap/m/demokit/iconExplorer/webapp/test/integration/HomeJourney.js
JavaScript
apache-2.0
859
define(['backbone', 'collections/players', 'views/player'], function(Backbone, PlayersCollection, PlayerView) { return Backbone.View.extend({ tagName: 'table', className: 'table table-striped', template: _.template($('#players-view').html()), initialize: function() { this.collection = new Playe...
blstream/ut-arena
ut-arena-www/App/scripts/views/players.js
JavaScript
apache-2.0
794
/* * Copyright 2015 Concept * * 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 writi...
bompi88/concept
server/seo/evaluation_criteria.js
JavaScript
apache-2.0
1,133
/** * 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 * * Unless required by applicable law or agreed to i...
chromeos/static-site-scaffold-modules
modules/static-site-scaffold/lib/11ty/l10n.js
JavaScript
apache-2.0
1,344
/* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-filename-extension': [1, { "extensions": [".js", ".jsx"] }] */ import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import DisplayNameSlugEditor from '../partials/display-name-slug-editor'; imp...
jelliotartz/Panoptes-Front-End
app/collections/settings.spec.js
JavaScript
apache-2.0
3,078
var path = require('path'); var fs = require('fs') var http = require('http') var url = require('url') var mime = require('./mime').types var config = require("./config"); var zlib = require("zlib") var utils = require("./utils") var port = 8089; var server = http.createServer(function(request, response){ var path...
huang303513/Debug-Instruments
视频断点播放/app.js
JavaScript
apache-2.0
2,168
/** * Copyright 2014 Daniel Furtlehner * * 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 ...
furti/ng-dashboard
specs/conditionalGroupProvider.spec.js
JavaScript
apache-2.0
8,929
import React, { Component } from 'react'; class ProjectItem extends Component { render() { return ( < li className = "Project" > < strong > { this.props.project.title } < /strong> - {this.props.project.category} < / li > ); } } export default ProjectItem;
morselapp/shop_directory
src/Components/ProjectItem.js
JavaScript
apache-2.0
311
/** * Copyright 2014 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
naskogithub/google-api-nodejs-client
apis/storage/v1.js
JavaScript
apache-2.0
49,086
/* Copyright (C) 2012-2014 NS Solutions Corporation. Licensed under the Apache License, Version 2.0. hifive version 1.1.14 gitCommitId a4c4bbab5019987c08ee2ba99ec4612a7054b8b3 (util,controller,modelWithBinding,view,ui,api.geo,api.sqldb,api.storage) */ (function(a){function d(a,d,k){var x=null,C=ib[a],O=tb[a];O&&(x=O(a...
hifive-snu/hifive-test-explorer
hifive-test-explorer/src/main/webapp/res/lib/hifive/h5.js
JavaScript
apache-2.0
112,101
import Collection from './collection'; import extend from '../utils/extend'; export default function Grouping(key, elements) { this.key = key; this.elements = elements; Collection.call(this, elements); } extend(Grouping, Collection, { /** * Gets the number of elements in the Grouping. * @retur...
multiplex/multiplex.js
src/lib/collections/grouping.js
JavaScript
apache-2.0
620
define(function(require) { /* DEPENDENCIES */ var BaseDialog = require('utils/dialogs/dialog'); var TemplateHTML = require('hbs!./clone/html'); var Sunstone = require('sunstone'); var Notifier = require('utils/notifier'); var Locale = require('utils/locale'); var OpenNebulaSecurityGroup = require(...
tuxmea/one
src/sunstone/public/app/tabs/secgroups-tab/dialogs/clone.js
JavaScript
apache-2.0
2,737
/* Siesta 3.0.1 Copyright(c) 2009-2015 Bryntum AB http://bryntum.com/contact http://bryntum.com/products/siesta/license */ /** @class Siesta.Harness.NodeJS @extends Siesta.Harness Class, representing the NodeJS harness. This class reports the output from all test files to console. This file is a reference only how...
department-of-veterans-affairs/ChartReview
web-app/js/siesta-3.0.1-lite/lib/Siesta/Harness/NodeJS.js
JavaScript
apache-2.0
3,700
<script> $(document).ready(function() { $("#jobs_table").DataTable({ "ajax": { 'type': 'POST', 'url': "{{ url_for('api.jobs', query_str=query_str) }}", }, "columns": [ {"data": "name"}, {"data": "last_build.status", "defaultContent": "None" }, ...
bregman-arie/rhoci
rhoci/templates/jobs/last_added_table.js
JavaScript
apache-2.0
3,302
define([ 'backbone', 'models/comment' ], function(Backbone, model){ var Collection = Backbone.Collection.extend({ model: model, url: '/api/1/comments' }); return new Collection(init.comments); });
erikeldridge/item-network
src/js/collections/comments.js
JavaScript
apache-2.0
215
var express = require('express'); var http = require('http'); var app = express(); var bodyParser = require('body-parser'); var methodOverride = require('method-override'); var router = require('./server/router'); var morgan = require('morgan'); app.use(bodyParser.urlencoded({extended: true})); // parse application/j...
Raspberrybrat/my-first-rest
index.js
JavaScript
apache-2.0
565
'use strict'; /* eslint-disable max-len */ const { extend } = require('underscore'); const lifecycleManager = require('abacus-lifecycle-manager')(); const moment = require('abacus-moment'); const { createStatsReader } = require('abacus-test-helper'); const env = { tokenSecret: 'secret', tokenAlgorithm: 'HS256'...
cloudfoundry-incubator/cf-abacus
test/integration/cf/renewer/src/test/renewer.js
JavaScript
apache-2.0
2,377
'use strict'; import React, {Component, PropTypes} from 'react'; import ReactNative, {View, Text} from 'react-native'; var Popover = require('../Popover'); var AutoHide = require('./AutoHide'); var ToptipAnimation = require('../Popover/PopoverAnimationVertical').create( {onStartShouldSetResponder: () => false} ); c...
glinjy/react-native-apex-ui
src/Toptip/Toptip.js
JavaScript
apache-2.0
1,503
import React from 'react'; import PropTypes from 'prop-types'; import FormField from '../../components/FormField'; import TextHelp from '../../components/TextHelp'; import DomainIdField from '../../components/DomainIdField'; import PodcastEdit from './PodcastEdit'; const LibraryFormContents = (props) => { const { c...
ericsoderberg/pbc-web
ui/js/pages/library/LibraryFormContents.js
JavaScript
apache-2.0
2,472
sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/ui/model/json/JSONModel", "sap/m/MessageToast" ], function (Controller, JSONModel, MessageToast) { "use strict"; var TABLESETTINGS = window.TABLESETTINGS; return Controller.extend("sap.ui.table.testApps.DragAndDrop", { onInit: function () { var oTable = th...
cschuff/openui5
src/sap.ui.table/test/sap/ui/table/testApps/DragAndDrop.controller.js
JavaScript
apache-2.0
4,396
/* * Copyright 2014 Fulup Ar Foll. * * 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 agree...
fulup-bzh/GeoGate
server/lib/_HttpClient.js
JavaScript
apache-2.0
8,325
/* global suite test internalScope */ (function () { suite('offsetPath', function () { test('basicShapeCircle', function () { var assertTransformInterpolation = internalScope.assertTransformInterpolation; assertTransformInterpolation([ {'offsetPath': 'circle(...
Motion-Path-Polyfill/motion-path-js
test/pathBasicShapeCircleTest.js
JavaScript
apache-2.0
4,232
/* * Copyright (C) 2014 Xillio (support@xillio.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
XillioQA/xill-platform-3.4
xill-ide-core/src/main/resources/load-doc-editor.js
JavaScript
apache-2.0
634
//// [promiseIdentityWithAny2.ts] interface IPromise<T, V> { then<U, W>(callback: (x: T) => IPromise<U, W>): IPromise<U, W>; } interface Promise<T, V> { then(callback: (x: T) => Promise<any, any>): Promise<any, any>; } // Error because type parameter arity doesn't match var x: IPromise<string, number>; var x: ...
freedot/tstolua
tests/baselines/reference/promiseIdentityWithAny2.js
JavaScript
apache-2.0
859
'use strict'; /** * Created by zhaoxueyong on 2017/1/14. */ angular.module('browserApp'). controller('ColuslifeCtrl', function ($scope, $http) { $scope.countryName = "China"; var mapObj = null; $scope.init_map = function(){ console.log("init map now"); mapObj = new AMap.Map("mapbody", { ...
ColusLife/ColusLifeDemo
Browser/app/scripts/controllers/coluslife.js
JavaScript
apache-2.0
1,433
// Copyright 2017 Joyent, Inc. module.exports = Identity; var assert = require('assert-plus'); var algs = require('./algs'); var crypto = require('crypto'); var Fingerprint = require('./fingerprint'); var Signature = require('./signature'); var errs = require('./errors'); var util = require('util'); var utils = requi...
ionutbarau/petstore
petstore-app/src/main/resources/static/node_modules/sshpk/lib/identity.js
JavaScript
apache-2.0
8,545
// viewReportedPeptidesForProteinAllLoadedFromWebServiceTemplate.js // Process and load data into the file viewReportedPeptidesForProteinAllLoadedFromWebServiceTemplateFragment.jsp // Used on page viewSearchProteinAll.jsp ////////////////////////////////// // JavaScript directive: all variables have to be d...
yeastrc/proxl-web-app
proxl_web_app/front_end/src/js/page_js/data_pages/project_search_ids_driven_pages/protein_pages/viewReportedPeptidesForProteinAllLoadedFromWebServiceTemplate.js
JavaScript
apache-2.0
13,535
angular.module('n52.core.base') .factory('styleService', ['$rootScope', 'settingsService', 'colorService', '$injector', "styleServiceStandalone", function($rootScope, settingsService, colorService, $injector, styleServiceStandalone) { var intervalList = settingsService.intervalList; ...
52North/sensorweb-client-core
src/js/base/services/styleTs.js
JavaScript
apache-2.0
4,493
/** * Slices arrays. * @param array * @param pos * @returns {string} */ var arraySlicer = function (array, pos) { return array.slice(0, pos).concat(array.slice(pos + 1, array.length)); }; /** * https://en.wikipedia.org/wiki/Cosine_similarity * https://en.wikipedia.org/wiki/Canberra_distance * https://en.w...
albertlinde/Legion
framework/shared/Utils.js
JavaScript
apache-2.0
1,725
(function () { 'use strict'; var dccModul = angular.module('workinghours', ['dcc.controller', 'dcc.factories', 'dcc.filter', 'ngCookies', 'ngRoute']); dccModul.config(['$routeProvider', '$httpProvider', function ($routeProvider, $httpProvider) { $routeProvider.when('/duration/new', { ...
pongo710/workinghours
src/main/resources/static/js/app.js
JavaScript
apache-2.0
1,470
/// <reference types="cypress" /> context('Waiting', () => { beforeEach(() => { cy.visit('https://example.cypress.io/commands/waiting') }) // BE CAREFUL of adding unnecessary wait times. // https://on.cypress.io/best-practices#Unnecessary-Waiting // https://on.cypress.io/wait it('cy.wait() - wait for ...
wesleyegberto/courses-projects
frontend/angular/Angular-JumpStart/cypress/examples/waiting.spec.js
JavaScript
apache-2.0
977
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ var global = require('./global'), config = process.mainModule.exports.config, commonUtils = require('../utils/common.utils'), logutils = require('../utils/log.utils'); var serviceRespData = {}; var webuiIP = null; function checkIfSe...
vishnuvv/contrail-web-core
src/serverroot/common/discoveryclient.api.js
JavaScript
apache-2.0
7,665
webserver.prototype.__proto__ = require('events').EventEmitter.prototype; webserver.prototype.server = null; webserver.prototype.config = null; webserver.prototype.endpoints = []; const bodyParser = require('body-parser'); const express = require('express'); const multer = require('multer'); const formData = multer...
Undeadkillz/node-steam-bot-manager
lib/webserver.js
JavaScript
apache-2.0
5,757
scaffolder: https://github.com/coryhouse/react-slingshot ^we wont use this though well use: https://github.com/coryhouse/pluralsight-redux-starter Our dev environment: 1. Automated Testign 2. Linting 3. Minification 4. Bundling 5. JSXCompilation 6. ES6 Transpilation Babel-Polyfill: few things babel cant do and bab...
iitjee/SteppinsWebDev
React/Project1- React n Redux/01 Environment Setup.js
JavaScript
apache-2.0
1,160
const path = require('path'); const fs = require('fs'); const escapeRegExp = require("lodash/escapeRegExp"); require("@babel/register")({ extensions: [".es6", ".es", ".jsx", ".js", ".mjs", ".ts"], only: [ new RegExp("^" + escapeRegExp(path.resolve(__dirname, "../../static/js")) + path.sep), new...
synicalsyntax/zulip
frontend_tests/zjsunit/index.js
JavaScript
apache-2.0
3,606
/** * $Id$ * * @author Moxiecode * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved. */ /* Import plugin specific language pack */ tinyMCE.importPluginLanguagePack('nonbreaking'); var TinyMCE_NonBreakingPlugin = { getInfo : function() { return { longname : 'Nonbreaking space', ...
WilliamGoossen/epsos-common-components.gnomonportal
webapps/ROOT/html/js/editor/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
JavaScript
apache-2.0
1,758
/* * * 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"); y...
michaelrbk/showCaseCordova
plugins/cordova-plugin-device-motion/src/tizen/AccelerometerProxy.js
JavaScript
apache-2.0
1,957
import React from 'react'; let lastClicked = 0; export default class Candidate extends React.Component { constructor(props) { super(props); this.state = { wiggle: false }; this.castVote = this.castVote.bind(this); this.wiggleDone = this.wiggleDone.bind(this); } componentDidMount() { const ...
AdlerPlanetarium/pluto-poll
src/components/VoteCandidate.js
JavaScript
apache-2.0
1,473
/* * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.ap...
udarakr/carbon-store
apps/publisher/themes/default/js/lifecycle/lifecycle-core.js
JavaScript
apache-2.0
33,881
/* * Copyright © 2014 NoNumber All Rights Reserved * License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ (function($){$(document).ready(function(){if(typeof(window['nn_sliders_use_hash'])!="undefined"){nnSliders={show:function(id,scroll,ignoreparents){var openparents=0;var $el=$('#'+id);if(!ignoreparents){$e...
cmaere/lwb
templates/protostar/media/sliders/js/script.min.js
JavaScript
apache-2.0
2,217
/*global QUnit */ sap.ui.define([ "sap/ui/qunit/QUnitUtils", "sap/ui/qunit/utils/createAndAppendDiv", "sap/ui/ux3/NavigationBar", "sap/ui/thirdparty/jquery", "sap/ui/ux3/NavigationItem" ], function(qutils, createAndAppendDiv, NavigationBar, jQuery, NavigationItem) { "use strict"; // prepare DOM createAndAppend...
SAP/openui5
src/sap.ui.ux3/test/sap/ui/ux3/qunit/NavigationBar.qunit.js
JavaScript
apache-2.0
10,944
ace.define("ace/ext/menu_tools/overlay_page",[], function(require, exports, module) { 'use strict'; var dom = require("../../lib/dom"); var cssText = "#ace_settingsmenu, #kbshortcutmenu {\ background-color: #F7F7F7;\ color: black;\ box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);\ padding: 1em 0.5em 2em 1em;\ overfl...
SAP/openui5
src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace/ext-settings_menu.js
JavaScript
apache-2.0
26,258
var NAVTREEINDEX37 = { "a03349.html":[3,0,174], "a03349.html#a30f34b2cebac981b0ff2be7508b2537a":[3,0,174,3], "a03349.html#a6a98c1ea78a5041690c98cd3010df4a1":[3,0,174,2], "a03349.html#abdebedb1f3f9fd43f04e051ae965bd6e":[3,0,174,0], "a03349.html#adebb3f6f6beb03a3402690a71a59d24b":[3,0,174,1], "a03353.html":[3,0,175], "a0...
stweil/tesseract-ocr.github.io
4.00.00dev/navtreeindex37.js
JavaScript
apache-2.0
13,365
// Changes XML to JSON exports.xml2json = function(xml){ return xmlToJson(xml); }; function xmlToJson(xml) { // Create the return object var obj = {}; if (xml.nodeType == 1) { // element // do attributes if (xml.attributes.length > 0) { obj["@attributes"] = {}; for (var j = 0; j < xml.attributes.lengt...
aremox/RadioAdaja
app/lib/xmlToJson.js
JavaScript
apache-2.0
991
/* ============================================================= * bootstrap-collapse.js v2.2.2 * http://twitter.github.com/bootstrap/javascript.html#collapse * ============================================================= * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "Lic...
michaelcouck/ikube
code/war/src/main/webapp/assets/javascripts/bootstrap/bootstrap-collapse.js
JavaScript
apache-2.0
4,620
import { GET_COMMENTS, GET_COMMENT, SUBMIT_VOTE_COMMENT, DELETE_COMMENT, EDIT_COMMENT, ADD_COMMENT, } from '../actions'; import _ from 'lodash'; function commentsReducer(state = {}, action) { switch (action.type) { case GET_COMMENTS: let comments = _.mapKeys( _.orderBy(action.payload.da...
rtaibah/readable
src/reducers/Comments.js
JavaScript
apache-2.0
989
/** * @license Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or a...
tkadlec/lighthouse
lighthouse-core/audits/byte-efficiency/uses-optimized-images.js
JavaScript
apache-2.0
3,287
function drawCanvas() { var canvas = document.getElementById('canvas-container'); var context = canvas.getContext("2d"); var grd = context.createLinearGradient(0,0,170,0); grd.addColorStop(0,"red"); grd.addColorStop(0.5,"blue"); grd.addColorStop(1,"green"); context.fillStyle = grd; conte...
hongqingbin/hongqingbin.github.io
javascripts/app/journey-of-h5.js
JavaScript
apache-2.0
543
var dataCacheName = 'Jblog-v1'; var cacheName = 'Jblog-1'; var filesToCache = [ '/', '/index.html' ]; self.addEventListener('install', function(e) { console.log('[ServiceWorker] Install'); e.waitUntil( caches.open(cacheName).then(function(cache) { console.log('[ServiceWorker] Cachin...
cfaddict/jhipster-course
jblog/src/main/webapp/sw.js
JavaScript
apache-2.0
1,152
/** * Created with JetBrains WebStorm. * User: k-nkgwj * Date: 13/01/21 * Time: 3:29 * To change this template use File | Settings | File Templates. */ var OutputBox = (function () { function OutputBox(selector) { this.jqueryObject = $(selector); this.enabled = true; } OutputBox.prot...
nkgwj/hub_test
js/outputbox.js
JavaScript
apache-2.0
879
/* AngularJS v1.2.8-build.2085+sha.1b0718b (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(h,e,A){'use strict';function u(w,q,k){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,c,b,f,n){function y(){l&&(l.$destroy(),l=null);g&&(k.leave(g),g=null)}function...
LuukvE/PieChecker
client/scripts/libs/angular-route.min.js
JavaScript
apache-2.0
3,862
wesabe.provide("fi-scripts.com.citibank.mfa", { dispatch: function() { if (page.present(e.mfa.indicator)) { action.answerSecurityQuestions(); return false; } }, actions: { }, elements: { mfa: { indicator: [ '//*[has-class("jrspageHeader")][contains(string(.), "Authoriza...
wesabe/ssu
application/chrome/content/wesabe/fi-scripts/com/citibank/mfa.js
JavaScript
apache-2.0
1,139
const path = require("path"); const webpack = require("webpack"); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const CopyWebpackPlugin = require('copy-webpack-plugin'); var babelOptions = { presets: [ ["@babel/preset-env", { ...
MangelMaxime/Fulma
templates/Content/webpack.config.js
JavaScript
apache-2.0
3,089
/** * @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/error/to-json/benchmark/benchmark.js
JavaScript
apache-2.0
1,283
describe('adbutler adapter tests', function () { var expect = require('chai').expect; var adapter = require('modules/adbutlerBidAdapter'); var adLoader = require('src/adloader'); var bidmanager = require('src/bidmanager'); describe('creation of bid url', function () { var stubLoadScript; beforeEach(...
jbAdyoulike/Prebid.js
test/spec/modules/adbutlerBidAdapter_spec.js
JavaScript
apache-2.0
13,858
/** * Copyright 2015 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...
devjsun/amphtml
test/functional/test-viewport.js
JavaScript
apache-2.0
43,477
'use strict'; /** * Requirements * @ignore */ const Filter = require('./Filter.js').Filter; const PathesConfiguration = require('../../model/configuration/PathesConfiguration.js').PathesConfiguration; const assertParameter = require('../../utils/assert.js').assertParameter; const pathes = require('../../utils/pathe...
entoj/entoj-system
source/nunjucks/filter/SvgViewBoxFilter.js
JavaScript
apache-2.0
2,791
import { expect } from 'chai'; import { spec, resetInvibes, stubDomainOptions } from 'modules/invibesBidAdapter'; describe('invibesBidAdapter:', function () { const BIDDER_CODE = 'invibes'; const PLACEMENT_ID = '12345'; const ENDPOINT = '//bid.videostep.com/Bid/VideoAdContent'; const SYNC_ENDPOINT = '//k.r66ne...
olafbuitelaar/Prebid.js
test/spec/modules/invibesBidAdapter_spec.js
JavaScript
apache-2.0
13,759
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
llarreta/larretasources
AngularCommons/app/Components/heroes-list/heroe-list.component.js
JavaScript
apache-2.0
2,759
var express = require('express'); var https = require('https'); var http = require('http'); var url = require('url'); var bodyParser = require('body-parser'); var request = require('request') ; //var publicRouter = express.Router(); module.exports = function (publicRouter,vcapServices) { publicRouter.use(bod...
giladm/mcedemo
routes/publicRouter.js
JavaScript
apache-2.0
7,077
import React from "react"; import { Link } from "react-router"; import Loader from "../../core/Loader"; import DataComponent from "../base/DataComponent"; import DataError from "../base/DataError"; import ResourceAction from "./../base/ResourceAction"; import history from "../../history"; /** * @author Niklas Keller ...
coolcrowd/control-ui
src/js/components/notifications/NotificationDetail.js
JavaScript
apache-2.0
3,477
/** * @license * Copyright 2016 The Lovefield Project 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 ...
arthurhsu/rdb-polyfill
gulpfile.js
JavaScript
apache-2.0
8,013
'use strict'; const _ = require('lodash'); const config = require('../../../common/config'); const CONST = require('../../../common/constants'); const errors = require('../../../common/errors'); const logger = require('../../../common/logger'); const jwt = require('../jwt'); const utils = require('../../../common/util...
sauravmndl/service-fabrik-broker
broker/lib/fabrik/ServiceFabrikOperation.js
JavaScript
apache-2.0
4,373
var searchData= [ ['undefined_5fband',['UNDEFINED_BAND',['../a01181.html#a9efc501b4bfd07c8e00e55bbb5f28690',1,'blkocc.h']]], ['uni_5fmax_5flegal_5futf32',['UNI_MAX_LEGAL_UTF32',['../a00614.html#a98a2f50a1ca513613316ffd384dd1bfb',1,'unichar.cpp']]], ['unichar_5flen',['UNICHAR_LEN',['../a00617.html#a902bc40c9d89802...
stweil/tesseract-ocr.github.io
4.00.00dev/search/defines_15.js
JavaScript
apache-2.0
1,888
/* global QUnit, sinon */ sap.ui.define([ "sap/ui/mdc/Table", "sap/ui/mdc/table/Column", "sap/ui/mdc/library", "../../QUnitUtils", "../../util/createAppEnvironment", "sap/ui/fl/write/api/ControlPersonalizationWriteAPI", "sap/ui/core/Core", "sap/ui/core/library", "sap/ui/model/odata/v4/ODataModel", "sap/ui/mod...
SAP/openui5
src/sap.ui.mdc/test/sap/ui/mdc/qunit/odata/v4/TableDelegate.qunit.js
JavaScript
apache-2.0
54,115
/** * This is the controller file for "TodoDetail" * * @class Controller.TodoDetail * @author Steven House * @email steven.m.house@gmail.com */ var args = arguments[0] || {}; var itemId = args.itemId || ""; // Include logging utility var log = Alloy.Globals.log; var args = arguments[0] || {}; var id = args.id;...
titanium-forks/shouse.To-Do
app/controllers/TodoListDetail.js
JavaScript
apache-2.0
12,178
// Here will be compiled design document DESIGNS=false;
itteco/tadagraph
core/_attachments/js/static.js
JavaScript
apache-2.0
56
/** * author: Shawn * time : 2017/8/15 17:19 * desc : */ var testJar = require('./testJar'); for (let i = 0; i < 10; i++) { testJar.tt(); } // testJar.tt(); // testJar.tt(); // testJar.tt();
SethWen/NodejsLearning
fixbugs/test.js
JavaScript
apache-2.0
204
/** * Created by Rory on 12/14/2015. */ Template.MessagesPage.helpers({ getMessages: function () { if (Meteor.user()) { return Messages.find({owner:Meteor.user().username}); } }, getSender: function () { return {username:this.sender}; }, getTextbook: function () { return {_title:this.t...
textbookmania/LightSteelBlue
app/client/templates/pages/Messages/MessagesPage.js
JavaScript
apache-2.0
968
import React from 'react'; import { action } from '@storybook/addon-actions'; import MultiColumnList from '../MultiColumnList'; import Button from '../../Button'; import { asyncGenerate } from './service'; export default class ClickableRows extends React.Component { constructor() { super(); this.state = { ...
folio-org/stripes-components
lib/MultiColumnList/stories/ClickableRows.js
JavaScript
apache-2.0
1,633
'use strict'; module.exports = require('../lib/server');
nolanlawson/socket-pouch
server/index.js
JavaScript
apache-2.0
57
var structofp12__experimenter__stats__header = [ [ "exp_type", "structofp12__experimenter__stats__header.html#a460441be714bfea09fad329cbf887740", null ], [ "experimenter", "structofp12__experimenter__stats__header.html#a26a1cc494706c82c3d8a1a79faf82463", null ] ];
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/structofp12__experimenter__stats__header.js
JavaScript
apache-2.0
272
function validateUser(req){ return (req.session.hasOwnProperty('user')&&req.session.user.length!=0); } module.exports = { index:function(req,res,next){ if(validateUser(req)){ next() }else{ res.render('login',{params:req.params,session:req.session}); } } };
Courseplusplus/Courseplusplus
teacher_server/controllers/auth/index.js
JavaScript
apache-2.0
317
'use strict'; /** * This file exports the main roles AnalyticsBackend uses which are: * 'developer', 'teacher' and 'student'. * * Also indicates the anonymous routes used by the gleaner-tracker module to * send data to the collector server. */ exports.app = { roles: [ { roles: 'stud...
manuel-freire/rage-analytics-backend
a-backend-roles.js
JavaScript
apache-2.0
3,452
// The island of misfit toys... for functions var path = require('path'), fs = require('fs'), colors = require('colors'), crypto = require('crypto'), util = require('util'), wrench = require('wrench'), jsonlint = require('jsonlint'), resolve = require('resolve'), paths = require('global-paths'), logger = requ...
mobilehero/adamantium
Alloy/utils.js
JavaScript
apache-2.0
18,249
var a00980 = [ [ "kDoNotReverse", "a00980.html#a0db2198747060995d61a01dcfac97eb7", null ], [ "kForceReverse", "a00980.html#a597d22620e40ecc0ec38dfa4f65a9d85", null ], [ "kReverseIfHasRTL", "a00980.html#a402a13eb2d1593daed0190a118f23d88", null ], [ "RTLReversePolicyNames", "a00980.html#af5c5a40d574f6ab56...
stweil/tesseract-ocr.github.io
4.0.0-beta.1/a00980.js
JavaScript
apache-2.0
347
// ----------------------------------------------- imports var Declare = require('tui/base/Declare'); var IValidator = require('tui/validation/IValidator'); // ----------------------------------------------- class var Require = Declare({ extends : IValidator, validate : function(value, options){ if(_...
mm250/TiFramework
app/lib/morcode/validation/Required.js
JavaScript
apache-2.0
463