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 |
|---|---|---|---|---|---|
'use strict';
const db = requireDb();
const exceptions = require('dumonda-me-server-lib').exceptions;
const moreResults = require('../util/moreSearchResults');
const cdn = require('dumonda-me-server-lib').cdn;
const slug = require('limax');
const PAGE_SIZE = 20;
const getSuggestionResponse = async function (suggesti... | Elyoos/Elyoos | dumondaMe/api/models/question/suggestion.js | JavaScript | agpl-3.0 | 2,463 |
import Ember from 'ember';
import { expect } from 'chai';
import { describeComponent, it } from 'ember-mocha';
import { beforeEach } from 'mocha';
import hbs from 'htmlbars-inline-precompile';
import instanceInitializer from '../../../../instance-initializers/ember-intl';
let options = { integration: true };
descri... | kerel-fs/skylines | ember/tests/integration/components/timeline-events/club-join-test.js | JavaScript | agpl-3.0 | 1,488 |
// Módulos
var fs = require('fs') // IO ficheros
, parser = require('csv-parse') // carga CSV en array
, slug = require('slug') // genera slug
, _ = require ('lodash') // funciones manipulación de colecciones
, ejs = require ('ejs') // motor de plantillas
, minify = require('html-minifier').minify; // reducir... | joker-x/programa-podemos-2015 | index.js | JavaScript | agpl-3.0 | 2,313 |
'use strict';
/*global _*/
/**
* @ngdoc directive
* @name ngPasswordStrengthApp.directive:ngPasswordStrength
* @description
* # ngPasswordStrength HEAVILY CUSTOMISED DO NOT UPDATE
*/
angular.module('ngPasswordStrength', []).directive('ngPasswordStrength', ['$compile', '$rootScope', function($compile, $rootScope)... | icescrum/iceScrum | grails-app/assets/javascripts/vendors/angular/plugins/angular-password-strength.js | JavaScript | agpl-3.0 | 8,396 |
// Usage: node gen_dao.js exec <source folder name> <target folder name>
// <source folder name>: Include files each for a table.
// <target folder name>: To store generated java class files.
// 映射文件格式:
// 1# DB表名
// 2# 第一个字段名 + 空格 + 如果后面跟一个 # 号表示字段非空,跟一个 * 号表示字段唯一
// 3# 第一个字段类型和长度
// 4# 第一个字段的说明
// 5# 重复2-3的内容
var f... | swiftech/DaoGen | gen_dao.js | JavaScript | agpl-3.0 | 10,786 |
var appoAPIClient = {
hints: ["Questa settimana ti sei spostato per 100 km in auto, per 5 in bus ed hai camminato per 2 km bruciando 50 calorie"],
healthOptions: [{"key": "lose_weight", "value": "Perdere peso"},
{"key": "walk_more", "value": "Camminare di piu'"}],
executeQuery: function(actionQuery, successQuer... | sPaolettiGeoin/siiMobilityAppKit | www/js/modules/healthCare/AppoAPIClient.js | JavaScript | agpl-3.0 | 3,320 |
//객체얻기
function getId(id)
{
return document.getElementById(id);
}
//리다이렉트
function goHref(url)
{
location.href = url;
}
//아이디형식체크
function chkIdValue(id)
{
if (id == '') return false;
if (!getTypeCheck(id,"abcdefghijklmnopqrstuvwxyz1234567890_-")) return false;
return true;
}
//파일명형식체크
function chkFnameValue(file)... | gitkhs/cms-kq | _core/js/sys.js | JavaScript | lgpl-2.1 | 21,910 |
/*
* Copyright (C) 2011 JTalks.org Team
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library i... | a-nigredo/jcommune | jcommune-view/jcommune-web-view/src/main/webapp/resources/javascript/app/dialog.js | JavaScript | lgpl-2.1 | 13,856 |
/*!
* TableDnD plug-in for JQuery, allows you to drag and drop table rows
* You can set up various options to control how the system will work
* Copyright (c) Denis Howlett <denish@isocra.com>
* Licensed like jQuery, see http://docs.jquery.com/License.
*/
/**
* Configuration options:
*
* onDragStyle
* T... | jinshana/tangocms | assets/js/jQuery/plugins/dnd.src.js | JavaScript | lgpl-2.1 | 16,674 |
(function(){var __modFun = function(__require, promiseland){ __modFun = undefined;
var classSystem = promiseland.classSystem;
if (promiseland._hasModule({ hashStr: "b9f8ed0c9d353bb6c2c3688ec475e4a8" })){ return promiseland._getModule("b9f8ed0c9d353bb6c2c3688ec475e4a8"); };
var PL$1 = (function(){
"use strict";
var PL$... | soliton4/promiseland | test/test/typesafetyMemberFunction2.js | JavaScript | lgpl-3.0 | 2,861 |
// Monkey patching in Date.now in case it's not here already
// This is for IE8-. In IE9+ ( even IE9 w/ IE8 compatability mode on ) this works
// just fine.
Date.now = Date.now || function() { return +new Date; };
// JavaScript Document
Ext.namespace('CCR', 'CCR.xdmod', 'CCR.xdmod.ui', 'CCR.xdmod.ui.dd', 'XDMoD', 'XD... | smgallo/xdmod | html/gui/js/CCR.js | JavaScript | lgpl-3.0 | 63,227 |
/**
* This file is part of ComilaJS.
*
* ComilaJS 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 your option) any later version.
*
* ComilaJS is distri... | danitso/comlajs | src/Parser/Row/CustomAttributeRow.js | JavaScript | lgpl-3.0 | 2,006 |
function TextNodeAnchorProvider(){
this._selector;
this._anchor;
}
TextNodeAnchorProvider.prototype = new AnchorProvider();
TextNodeAnchorProvider.prototype.constructor = TextNodeAnchorProvider;
TextNodeAnchorProvider.prototype.getAnchor = function(template, selector){
checkType(template, MbaDom);
chec... | amoissant/mambajs | Mamba/js/TextNodeAnchorProvider.js | JavaScript | lgpl-3.0 | 1,901 |
// onblur事件
// 如果用户试图让这个页面退到后面(这会触发onblur 处理程
// 序),脚本会迫使它再次回到前面。
window.onblur = moveUp; // 没能看到效果,可能有特别的设置吧
function moveUp() {
self.focus();
}
// onblur 事件的另一种更讨厌的用途:广告发布者在你浏览的当前网页后面悄
// 悄地打开一个广告窗口,直到你关闭了当前窗口,才发现后面已经堆了很多窗口。人们往
// 往把这归罪于他们打开的最后一个Web 站点,但是实际上广告可能是更早之前浏览的页面
// 所创建的。
// onblur还有... | Litfeature/litfeature.github.io | demo/Origin JavaScript/JavaScript基础教程(第8版)/Chapter 08/js/08-04.js | JavaScript | lgpl-3.0 | 707 |
//////////////////////////////////////////////
// Mapa Digital de México v6.0 //
// //
//////////////////////////////////////////////
eval((function(x){var d="";var p=0;while(p<x.length){if(x.charAt(p)!="`")d+=x.charAt(p++);else{var l=x.charCodeAt(p+3)-28;if(l>4)d+=d.substr(d.length-x.charCodeAt(p+1)*96-x.cha... | MxSIG/mxsig | mxsig/js/core/events.js | JavaScript | lgpl-3.0 | 520 |
/*!
* Copyright (c) Metaways Infosystems GmbH, 2011
* LGPLv3, http://www.arcavias.com/en/license
*/
Ext.ns('Ext.ux.AdvancedSearch');
/**
* operator and value part of a search criteria
*
* @namespace Ext.ux.AdvancedSearch
* @class Ext.ux.AdvancedSearch.Filter
* @extends Ext.Container
*/
Ext.ux.AdvancedSearch... | Arcavias/arcavias-core | client/extjs/lib/ext.ux/AdvancedSearch/Filter.js | JavaScript | lgpl-3.0 | 4,034 |
export const VALID_ORG_RESOURCE_NO_ID = {
"type": "organizations",
"attributes": {
"name": "Test Organization"
},
"relationships": {
"liaisons": {
"data": [{"type": "people", "id": "53f54dd98d1e62ff12539db3"}]
}
}
};
export const VALID_ORG_RESOURCE_NO_ID_EXTRA_MEMBER = Object.assign(
{"ex... | beni55/json-api | test/integration/fixtures/creation.js | JavaScript | lgpl-3.0 | 804 |
var searchData=
[
['thermalbody',['ThermalBody',['../d2/d2b/classmknix_1_1_thermal_body.html#a41c675feaab004c04ff4f5ae0fb8a27e',1,'mknix::ThermalBody::ThermalBody()'],['../d2/d2b/classmknix_1_1_thermal_body.html#ac80f8070e47d8467ff2818a9d9095a8c',1,'mknix::ThermalBody::ThermalBody(std::string)']]],
['translate',['t... | daniel-iglesias/mknix | doc/html/search/functions_f.js | JavaScript | lgpl-3.0 | 1,210 |
/*!
* Copyright(c) 2018 Jan Blaha
*/
class Resources {
constructor (reporter, definition) {
this.reporter = reporter
this.definition = definition
if (!this.reporter.documentStore.model.entityTypes.TemplateType) {
throw new Error('resources extension depends on templates extension')
}
th... | jsreport/jsreport-resources | lib/resources.js | JavaScript | lgpl-3.0 | 3,404 |
// Written by Jürgen Moßgraber - mossgrabers.de
// Michael Schmalle - teotigraphix.com
// (c) 2014-2016
// Licensed under LGPLv3 - http://www.gnu.org/licenses/lgpl-3.0.txt
function CursorDeviceProxy (cursorDevice, numSends, numParams, numDevicesInBank, numDeviceLayers, numDrumPadLayers)
{
this.cu... | teotigraphix/Touch4BitwigOSC | framework/daw/CursorDeviceProxy.js | JavaScript | lgpl-3.0 | 52,741 |
/**
* Start Command
*
* @module greppy/cli/start
* @author Hermann Mayer <hermann.mayer92@gmail.com>
*/
exports.run = function(contexts, debug)
{
// Find a Greppy project recursivly
var appPath = commandHelper.findProjectOrDie();
contexts = commandHelper.checkContexts(contexts || []);
var ... | Jack12816/greppy | bin/command/start.js | JavaScript | lgpl-3.0 | 4,709 |
/**
* 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/alfresco/dnd/FormCreationTest.js | JavaScript | lgpl-3.0 | 7,160 |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program 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... | joansmith/sonarqube | server/sonar-web/src/main/js/apps/overview/components/coverage-measures.js | JavaScript | lgpl-3.0 | 5,926 |
var class_catharsis_1_1_web_1_1_widgets_1_1_i_yandex_analytics_widget_extensions =
[
[ "Language", "class_catharsis_1_1_web_1_1_widgets_1_1_i_yandex_analytics_widget_extensions.html#ae852a90ce1030b834ba7e3a03e730c69", null ]
]; | prokhor-ozornin/Catharsis.NET.Web.Widgets | doc/html/class_catharsis_1_1_web_1_1_widgets_1_1_i_yandex_analytics_widget_extensions.js | JavaScript | lgpl-3.0 | 231 |
import React from "react"
export default function Home() {
return <div>404</div>
}
| pinoytech/react-playground | gatsby-source-plugin-rest-with-images/src/pages/404.js | JavaScript | unlicense | 86 |
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const convertStorageEventInit = require("./StorageEventInit.js").convert;
const convertStorage = require("./Storage.js").convert;
const impl = utils.implSymbol;
const ctorRegistry = utils.ctorRegistrySymbol;
const Ev... | diegopacheco/scala-playground | scala-js-1.0-fun/node_modules/jsdom/lib/jsdom/living/generated/StorageEvent.js | JavaScript | unlicense | 8,698 |
import React from 'react';
import ReactDOM from 'react-dom';
import baconipsum from 'baconipsum';
import { ThemeProvider } from 'styled-components';
import Button
from './vanilla/Button';
// from './inline/Button';
// from './css-modules/Button';
// from './radium/Button';
// from './aphrodite/Button';
// ... | ReactCLT/styling-react-components | index.js | JavaScript | unlicense | 1,184 |
import isomorphic from './isomorphic'
import * as styles from './styles'
import assetsLoaders from './assetsLoaders'
import babelLoader from './babelLoader'
import polyfills from './polyfills'
import * as devtools from './devtools'
import globals from './globals'
import optimize from './optimize'
import output from './... | vacuumlabs/webpack-config-vacuumlabs | src/makeConfig.js | JavaScript | unlicense | 1,343 |
mycallback( {"_record_type": "fec.version.v7_0.TEXT", "FILER COMMITTEE ID NUMBER": "C00441410", "REC TYPE": "TEXT", "TEXT4000": "8110 La Jolla Shores", "TRANSACTION ID NUMBER": "TINCA492", "_src_file": "2011/20110504/727399.fec_1.yml", "BACK REFERENCE TRAN ID NUMBER": "INCA492", "BACK REFERENCE SCHED / FORM NAME": "SA1... | h4ck3rm1k3/federal-election-commission-aggregation-json-2011 | objects/81/b02ffab62f9e64227debb676f18f4a7be31103.js | JavaScript | unlicense | 328 |
// 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].indexOf(5));
// assert.equal(-1, [1,2,3].indexOf(1)); // ここが失敗する
// });
// });
// });
| katsut/sls_apps | test/handlers/cleaning.test.js | JavaScript | unlicense | 331 |
// root.part1.js | danatcofo/VS.NET-Javascript-Include | Javascipt-Include/JavascriptInclude.Tests.Src/src/root.part1.js | JavaScript | unlicense | 19 |
// Load our dependencies
var quote = require('shell-quote').quote;
var SemVer = require('semver').SemVer;
var shell = require('shelljs');
// Define our release process
exports.publish = function (params, cb) {
// Calculate the semver branches (e.g. `1.2.3` -> `1.2.x`, `1.x.x`)
var semver = new SemVer(params.versio... | twolfson/foundry-release-git-semver-branches | lib/foundry-release-git-semver-branches.js | JavaScript | unlicense | 895 |
/**
* pseries - a JavaScript micro-library for handling asynchronous flow control
* https://github.com/rBurgett/pseries
*
* Copyright (c) 2016 by Ryan Burgett.
* Licensed under Apache License Version 2.0
* https://github.com/rBurgett/pseries/blob/master/LICENSE
**/
const pseries = arr => {
return new Promis... | rBurgett/pseries | src/pseries.js | JavaScript | apache-2.0 | 1,528 |
/**
* Created by plter on 6/29/16.
*/
(function () {
function Main() {
this._MAX_VALUE = 100;
this._data = [10, 11, 13, 20, 16, 18, 23, 20, 30, 25, 20, 35];
this._context2d = document.getElementById("canvas").getContext("2d");
this.drawData();
}
Main.prototype.drawData... | plter/HTML5Course20160612 | 20160629/Chart/app.js | JavaScript | apache-2.0 | 1,244 |
sap.ui.define(['sap/ui/core/UIComponent'],
function (UIComponent) {
"use strict";
return UIComponent.extend("sap.m.sample.WizardCurrentStep.Component", {
metadata: {
manifest: "json"
}
});
});
| SAP/openui5 | src/sap.m/test/sap/m/demokit/sample/WizardCurrentStep/Component.js | JavaScript | apache-2.0 | 213 |
var fs=require("fs"),path=require("path"),util=require("util"),npmlog=require("npmlog"),async=require("async"),streamBuffers=require("stream-buffers"),crypto=require("crypto"),luna=require("./luna"),novacom=require("./novacom"),errMsgHndl=require("./error-handler");
(function(){var c=npmlog;c.heading="installer";c.leve... | recurve/ares-ecosystem | node_modules/ares-webos-sdk/lib/installer.js | JavaScript | apache-2.0 | 6,625 |
$(function () {
$("#jqGrid").jqGrid({
url: '../sys/log/list',
datatype: "json",
colModel: [
{ label: 'id', name: 'id', width: 30, key: true,hidden : true },
{ label: '用户名', name: 'username', width: 50 },
{ label: '用户操作', name: 'operation', width: 70 },
{ label:... | oyhf521/school | school-web/src/main/webapp/js/sys/log.js | JavaScript | apache-2.0 | 1,678 |
var fs = require('fs'),
isCompressibleFile = require('../src/compressor')
._isCompressibleFile,
path = require('path');
var compressibleFiles = [
'file.js',
'file.css',
'file.html',
'uppercase.HTML'
];
describe( 'compressor', function() {
describe( 'isCompressibleFile', function() {
compressibleFiles.for... | omsmith/gulp-frau-publisher | test/isCompressibleFile.js | JavaScript | apache-2.0 | 869 |
'use strict';
const chai = require('chai');
const assert = chai.assert;
const EventEmitterEnhancer = require('event-emitter-enhancer');
const ResultSetReadStream = require('../../lib/resultset-read-stream');
describe('ResultSetReadStream Tests', function () {
const failListener = function (eventName) {
re... | sagiegurari/simple-oracledb | test/spec/resultset-read-stream-spec.js | JavaScript | apache-2.0 | 5,779 |
/**
* JS for MaIOMan App UI Config
*
* @author: manu.martor@gmail.com
* @version: 1.0.0
**/
angular.module('app.ui')
.config(function ($routeProvider) {
//set routes
$routeProvider
.when("/myprofile", {
templateUrl: "js/core/ui/views/myprofile.html",
controller: "appMyProfileController"})
.when("... | manumartor/app-dashboard-skeleton | public/js/core/ui/app-ui.config.js | JavaScript | apache-2.0 | 431 |
/**
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
import type { Props } from './types';
import type { ProviderContext } from '@dlghq/react-l10n';
import React, { PureComponent } from 'react';
import { LocalizationContextType } from '@dlghq/react-l10n';
import styles from './ContextMenu.css';
import Trigger f... | nolawi/champs-dialog-sg | src/components/ContextMenu/ContextMenu.js | JavaScript | apache-2.0 | 1,862 |
var a=20, b= 9, c=1, d=null;
var dag1 = 'maandag';
var dag2 = 'dinsdag';
var dag3 = 'Dinsdag';
var score = 100;
console.log(score === 100); //true
console.log(score !==100); //false
console.log(score < 20 || score >50); //true
console.log(score > 0 && score > 99); //true
console.log(score < 30 || score > 100 || 1=... | wesleyvano/KW1C_Javascript-L1P3 | Hoofdstuk 3/314/scripts/Script.js | JavaScript | apache-2.0 | 518 |
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
/*jshint browser:true jquery:true */
/*global console:true*/
define([
"jquery",
"handlebars",
"jquery/ui",
"jquery/template",
"mage/translate"
], function($){
$.widget("mage.loader", {
loaderStart... | webadvancedservicescom/magento | lib/web/mage/loader.js | JavaScript | apache-2.0 | 6,134 |
var args = arguments[0] || {};
var tabindex = args.tab;
$.tabGroup.setActiveTab(tabindex);
activateIcon(tabindex);
function activateIcon(tabindex) {
activate($.tabGroup.getTabs()[tabindex]);
}
function activate(tab) {
$.watch.icon = "/images/tabIconWatchDisable.png";
$.park.icon = "/images/tabIconParkDisable.png"... | mix-juice001/MobileAgentPilot | app/controllers/safetyDrive4Veteran.js | JavaScript | apache-2.0 | 695 |
/*
* ../../../..//localization/sco/HelpDialog.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 | localization/sco/HelpDialog.js | JavaScript | apache-2.0 | 3,102 |
/**
* Copyright 2017 Goldman Sachs.
* 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... | jennybkim/engineeringessentials | caseStudy/ui/src/components/StockTicker.js | JavaScript | apache-2.0 | 7,265 |
'use strict';
angular.module("openshiftConsole")
.factory("AppsService", function() {
var appLabel = function(apiObject) {
return _.get(apiObject, 'metadata.labels.app', '');
};
// Place empty app labels last.
var compareAppNames = function(left, right) {
if (!left && !right) {
r... | openshift/origin-web-console | app/scripts/services/apps.js | JavaScript | apache-2.0 | 930 |
Handlebars.registerPartial("errorDiv", window.HandlebarsTemplates["components/error_div"]);
Handlebars.registerPartial("itemTags", window.HandlebarsTemplates["item_tags"]);
Handlebars.registerPartial("workspaceItemDetails", window.HandlebarsTemplates["workspace_item_details"]);
Handlebars.registerPartial("itemLastComme... | nvoron23/chorus | app/assets/javascripts/utilities/handlebars_partials.js | JavaScript | apache-2.0 | 1,886 |
// @flow
const ExtractTextPlugin = require("extract-text-webpack-plugin");
function wrapExtract(
{ platform, use } /* { platform: Platform, use: Array<Object> } */
) {
const wrapped = ExtractTextPlugin.extract({
use
});
return platform === "browser" || platform === "desktop" ? wrapped : use;
}
function g... | tribou/react-template | config/webpack/blocks/cssModules.js | JavaScript | apache-2.0 | 2,032 |
/*!@license
* Infragistics.Web.ClientUI utilities localization resources 13.1.20131.1012
*
* Copyright (c) 2011-2013 Infragistics Inc.
*
* http://www.infragistics.com/
*
*/
$.ig = $.ig || {};
if (!$.ig.util) {
$.ig.util = {};
$.extend($.ig.util, {
locale: {
unsupportedBrowser: "Der aktuelle Browser unterstü... | mikeleishen/bacosys | frame/frame-web/src/main/webapp/script/ig/modules/i18n/infragistics.util-de.js | JavaScript | apache-2.0 | 952 |
import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import Promise from 'bluebird';
Promise.config({
cancellation: true,
});
import App from './app.jsx';
import * as Api from './api';
import { ApiError } from './utils/http';
var initializationEl = document.querySelector('#initia... | GeorgeWalker/schoolbus | Client/src/js/init.js | JavaScript | apache-2.0 | 2,457 |
/**
* Cube3D
* http://www.joelambert.co.uk/cube3d
*
* Copyright 2011, Joe Lambert. All rights reserved
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
var Cube = function(elem, opts) {
var _this = this;
this.options = $.extend({
size: 400,
delay: 800,
faceCS... | danja/thoughtcatchers.org | www/cube/js/cube.js | JavaScript | apache-2.0 | 3,704 |
//// [couldNotSelectGenericOverload.js]
function makeArray(items) {
return items;
}
var b = [1, ""];
var b1G = makeArray(1, "");
var b2G = makeArray(b);
function makeArray2(items) {
return items;
}
var b3G = makeArray2(1, "");
| fdecampredon/jsx-typescript-old-version | tests/baselines/reference/couldNotSelectGenericOverload.js | JavaScript | apache-2.0 | 248 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 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/blas/ext/base/ssort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js | JavaScript | apache-2.0 | 2,700 |
/* Play [State]
- Everything already loaded
- When player dies go back to menu
*/
// init states
var playState = {
create: function() {
// avoid broweser keyinputs
game.input.keyboard.addKeyCapture(
[Phaser.Keyboard.UP, Phaser.Keyboard.DOWN, Phaser.Keyboard.LEFT, Phaser.Keyboa... | arekom/supercoinbox | states/play.js | JavaScript | apache-2.0 | 6,937 |
// @ts-nocheck
'use strict';
const _ = require('lodash');
const containsString = require('../../utils/containsString');
const matchesStringOrRegExp = require('../../utils/matchesStringOrRegExp');
const report = require('../../utils/report');
const ruleMessages = require('../../utils/ruleMessages');
const validateOpti... | kyleterry/sufr | pkg/ui/node_modules/stylelint/lib/rules/comment-word-blacklist/index.js | JavaScript | apache-2.0 | 1,637 |
var pagePromptText = {
Summary_QTileMaximum:"您最多可以输入100个字符。",//10001
Summary_QDescribeMaximum:"您最多可以输入200个字符。",//10002
Summary_QFacePpicture:"请上传问卷封面图片,这个图片将显示在您的问卷封面上。(上传图片不大于5M)",//10003
Summary_QCommitment:"众研承诺您的隐私信息只会以加密的形式记录在我们的数据库内,不会出现在任何除此之外的地方。",//10004
Publish_publishCou... | emksaz/choicefrom | development/common/script/pagePromptText.js | JavaScript | apache-2.0 | 2,752 |
jQuery.webshims.register("dom-extend",function(c,g,u,i,n){var l=g.modules,h=/\s*,\s*/,p={},v={},q={},k={},x={},B=c.fn.val,y=function(b,a,d,f,e){return e?B.call(c(b)):B.call(c(b),d)};c.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?B.call(this):c.prop(a,"... | mdia/OneCalendar | public/javascripts/lib/js-webshim/minified/shims/combos/9.js | JavaScript | apache-2.0 | 32,320 |
/*
Copyright © 2011, Doron Rosenberg
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, this list of conditions and the following ... | nils-werner/Typewriter | application/source/kinds/ScrollBarsScroller.js | JavaScript | apache-2.0 | 6,121 |
var should = require('should');
var assert = require('assert');
var request = require('supertest');
var rewire = require('rewire');
var sinon = require('sinon');
describe('Endpoints: Jira Webhooks', function() {
var url = 'http://localhost:9000';
var server;
beforeEach(function() {
server = rewire... | JonathanBlood/Electron-Desktop-Notifier | test/endpoints-jira-webhooks-test.js | JavaScript | apache-2.0 | 13,106 |
import DS from 'ember-data';
var Todo = DS.Model.extend({
title: DS.attr('string'),
isCompleted: DS.attr('boolean')
});
Todo.reopenClass({
FIXTURES: [
{
id: 1,
title: "Complete Ember.js Tutorial",
isCompleted: false
},
{
id: 2,
... | Allyooop/ember-todo | todo-mvc/app/models/todo.js | JavaScript | apache-2.0 | 563 |
/**
*
* Copyright 2014-present Basho Technologies, 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 app... | basho/riak-nodejs-client | test/unit/kv/fetchvalue.js | JavaScript | apache-2.0 | 10,139 |
for(var i = 0; i < 5; i++) { var scriptId = 'u' + i; window[scriptId] = document.getElementById(scriptId); }
$axure.eventManager.pageLoad(
function (e) {
});
gv_vAlignTable['u4'] = 'center';gv_vAlignTable['u1'] = 'center'; | bpigg/WFMMobile | www/iPhone_Frame_for_Desktop_View_files/axurerp_pagespecificscript.js | JavaScript | apache-2.0 | 227 |
(function(){
/*
* jQuery 1.1.4 - New Wave Javascript
*
* Copyright (c) 2007 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2007-08-23 21:49:27 -0400 (Thu, 23 Aug 2007) $
* $Rev: 2862 $
*/
// Map over jQuery in case of overwrite
if ( type... | stserp/erp1 | source/web/por2/js/jquery.js | JavaScript | apache-2.0 | 67,358 |
/* jshint
funcscope: true,
newcap: true,
nonew: true,
shadow: false,
unused: true,
maxlen: 90,
maxstatements: 200
*/
/* global $ */
'use strict';
var markup = require('./NetSimDnsModeControl.html');
/**
* Generator and controller for DNS mode selector
* @param {jQuery} rootDiv
* @param {function} dnsModeC... | bakerfranke/code-dot-org | apps/src/netsim/NetSimDnsModeControl.js | JavaScript | apache-2.0 | 1,835 |
/*
* @flow
*/
import type { Child } from '../../stats/getEntryHierarchy';
import * as React from 'react';
export type Props = {|
parentChunks: Array<Child>,
totalModules: number,
|};
export default function ChunkBreadcrumb(props: Props) {
if (props.parentChunks.length === 0) {
return null;
}
return ... | pinterest/bonsai | src/components/stats/ChunkBreadcrumb.js | JavaScript | apache-2.0 | 683 |
/*describe ('UI testing with mockup', function() {
beforeEach(function() {
});
});*/
(function() {
'use strict';
describe('initial tests', function() {
beforeEach(function() {
browser.get('http://pipeline-dev.deleidos.com');
});
it('Title present: indicates website ... | deleidos/de-pipeline-tool | de-ui-system-tools/app/tests/test.js | JavaScript | apache-2.0 | 3,052 |
/**
* @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... | wardpeet/lighthouse | lighthouse-core/audits/splash-screen.js | JavaScript | apache-2.0 | 3,732 |
import React from "react";
import Router from "react-router";
import routes from "./routes.js";
var Application = {};
Application.run = function runApplication() {
Router.run(routes, function (Handler) {
React.render(<Handler/>, document.body);
});
};
export default Application;
| manuel-woelker/agendarium | ui/src/chrome/Application.js | JavaScript | apache-2.0 | 288 |
// test the main app file
//
// Copyright 2017 AJ Jordan
//
// 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 appl... | e14n/ofirehose | test/app-test.js | JavaScript | apache-2.0 | 1,906 |
'use strict';
/* Some browsers and PhantomJS don't support bind, mozilla provides
* this implementation as a monkey patch on Function.prototype
*
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects... | o19s/splainer-search | services/bind.js | JavaScript | apache-2.0 | 1,095 |
function Ranger(pin) {
var self = this;
self.signal = pin;
return {
getDistance: function(callback) {
self.signal.output(1);
setTimeout(function() {
self.signal.rawWrite(0);
}, 10);
self.signal.readPulse('high', 1000, function(err, duration) {
if (err) {
ca... | mitchdenny/tessel-sen10737p | index.js | JavaScript | apache-2.0 | 570 |
/**
* @license
* Copyright 2013 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Common support code for games that embed Ace.
* @author fraser@google.com (Neil Fraser)
*/
'use strict';
goog.provide('BlocklyAce');
goog.require('BlocklyInterface');
/**
* Load the Babel transpiler.
* ... | google/blockly-games | appengine/js/lib-ace.js | JavaScript | apache-2.0 | 3,117 |
//定义中文消息
jQuery.extend(jQuery.validator.messages, {
required: "必需填写项",
remote: "内容输入错误!",
email: "E-mail格式错误,请重新输入!",
url: "网址格式错误,请重新输入!",
date: "日期格式错误,请重新输入!",
dateISO: "日期格式错误,请重新输入!",
number: "请输入合法的数字!",
digits: "请输入零或正整数!",
creditcard: "信用卡号格式错误,请重新输入!",
... | neckhyg/dataChart | renren-web/src/main/webapp/czit/Scripts/jquery.validate.message_cn.js | JavaScript | apache-2.0 | 9,746 |
(function() {
'use strict';
var el = d3.select('.timeseries'),
elWidth = parseInt(el.style('width'), 10),
elHeight = parseInt(el.style('height'), 10),
margin = {top: 20, right: 20, bottom: 30, left: 50},
width = elWidth - margin.left - margin.right,
height = elHeight - margin.top - mar... | victormejia/d3-workshop-playground | modules/pageviews/timeseries.js | JavaScript | apache-2.0 | 692 |
/* global ga */
import React, {Component, PropTypes} from 'react';
import {Grid, Well, Col, Row} from 'react-bootstrap';
import PerLetter from './viz/perLetterContainer';
import NameLength from './viz/nameLengthContainer';
import Filter from './filter/filterContainer';
import TextComponent from './TextComponent/text... | webmaster444/webmaster444.github.io | react/squared_dogs_blog/app/GUI/mainComponent.js | JavaScript | apache-2.0 | 2,695 |
// @flow
import _ from 'lodash';
import { getCurrentConference } from '../base/conference';
import { toState } from '../base/redux';
import { FEATURE_KEY } from './constants';
/**
* Returns the rooms object for breakout rooms.
*
* @param {Function|Object} stateful - The redux store, the redux
* {@code getState}... | jitsi/jitsi-meet | react/features/breakout-rooms/functions.js | JavaScript | apache-2.0 | 2,637 |
/**
*
* 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 app... | leflux/leflux | src/server/apps/downloads.js | JavaScript | apache-2.0 | 2,194 |
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
/* vim: set ts=2: */
/*exported XLSX */
/*global global, exports, module, require:false, process:false, Buffer:false */
var XLSX = {};
(function make_xlsx(XLSX){
| iCasa/js-xlsx | bits/00_header.js | JavaScript | apache-2.0 | 223 |
/**
* @file timeline.js
*
* @brief
* The Timeline is an interactive visualization chart to visualize events in
* time, having a start and end date.
* You can freely move and zoom in the timeline by dragging
* and scrolling in the Timeline. Items are optionally dragable. The time
* scale on the axis is adjusted ... | foobarbecue/afterflight | afterflight/media/js/timeline.js | JavaScript | apache-2.0 | 205,004 |
function FoursquareAPI(params) {
var clientId = params.clientId;
var redirectUri = params.redirectUri;
var authorized = false;
var accessToken = '';
function createAuthenticationUrl(clientId, redirectUri, action) {
var action = action || '/authenticate';
var authenticationUrl = "https://foursquare.com/oa... | xurde/yumit-mobile | Resources/yumit/lib/foursquare.js | JavaScript | apache-2.0 | 2,698 |
sap.ui.define([
"sap/ui/core/UIComponent"
], function (UIComponent) {
"use strict";
return UIComponent.extend("sap.tnt.sample.ToolPageHorizontalNavigation.Component", {
metadata: {
manifest: "json"
}
});
}); | SAP/openui5 | src/sap.tnt/test/sap/tnt/demokit/sample/ToolPageHorizontalNavigation/Component.js | JavaScript | apache-2.0 | 221 |
var merge = require('webpack-merge')
var baseEnv = require('./base.env')
module.exports = merge(baseEnv, {
NODE_ENV: '"development"'
});
| marcopaz/is-service-up | frontend/config/dev.env.js | JavaScript | apache-2.0 | 140 |
setHuListModal("#selectHuPerson",function(data){
if(data){
$("#idNumber").val(data.idNumber);
$("#queryBtn").click();
}
});
$.dropDownInput({
inputId : "#idNumber",
dropDownId : "#idNumberQueryPrDown",
url : sendUrl.onekeyQuery_getFuzzy,
urlType:"get",
valName:"fuzzy",
selectVal:"idNumber",
templateId : "#... | huahuajjh/requisition_land | WebRoot/assets/pageJs/housePurchaseMansgement/hptSet.js | JavaScript | apache-2.0 | 5,838 |
var AnalysisPriority = {
Emergency: 0,
ExternalRequestsForNewPositions: 1,
OptimizationOfNotAnalyzedEnough: 2,
MainLineOptimization: 3
};
module.exports = AnalysisPriority;
| Scorpibear/chegura | app/analysis/analysis-priority.js | JavaScript | apache-2.0 | 190 |
/**
* @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/array/next-dtype/examples/index.js | JavaScript | apache-2.0 | 1,008 |
//// [foo_1.js]
var foo = require('./test/foo');
var z = foo.x + 10;
| fdecampredon/jsx-typescript-old-version | tests/baselines/reference/relativePathMustResolve.js | JavaScript | apache-2.0 | 72 |
sap.ui.define(['module'], function(moduleInfo) {
return {
name: 'module3-v2',
info: moduleInfo
};
}); | cschuff/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/testdata/modules/dependencies-with-contextual-mapping/module3-v2.js | JavaScript | apache-2.0 | 107 |
define([
'util/clipboardManager',
'util/promise'
], function(ClipboardManager, Promise) {
'use strict';
return withClipboard;
function getObjectsFromClipboardData(data) {
return new Promise(function(fulfill) {
var objects = { vertexIds: [], edgeIds: [] }
if (data) ... | visallo/visallo | web/war/src/main/webapp/js/data/withClipboard.js | JavaScript | apache-2.0 | 1,987 |
'use strict'; // eslint-disable-line strict
const assert = require('assert');
const TTLVCodec = require('../../../lib/network/kmip/codec/ttlv.js');
const TransportTemplate =
require('../../../lib/network/kmip/transport/TransportTemplate.js');
const KMIP = require('../../../lib/network/kmip');
const {
logger,... | scality/Arsenal | tests/functional/kmip/lowlevel.spec.js | JavaScript | apache-2.0 | 1,602 |
/* eslint-disable react/prop-types */
/* eslint-disable no-shadow */
import React, { useState, useEffect, Children } from "react";
import PropTypes from "prop-types";
import { cx, css } from "emotion";
// import { polyfill } from "react-lifecycles-compat";
import memoize from "lodash.memoize";
import { createButtonEven... | Autodesk/hig | packages/tabs/src/Tabs.js | JavaScript | apache-2.0 | 10,676 |
/*
Author : Johannes Rudolph
Fixes by : D Conway-Jones
*/
/* globals L: true */
L.Control.mouseCoordinate = L.Control.extend({
options: {
gps: true,
gpsLong: false,
utm: false,
utmref: false,
position: 'bottomleft',
_sm_a: 6378137.0,
_sm_b: 6356... | dceejay/RedMap | worldmap/leaflet/leaflet.mousecoordinate.js | JavaScript | apache-2.0 | 21,073 |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 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/strided/special/smskinv/lib/main.js | JavaScript | apache-2.0 | 917 |
'use strict';
angular.module('myApp.home.rightpanel',[])
.config([function() {
// $routeProvider.when('/view2', {
// templateUrl: 'view2/home.html',
// controller: 'View2Ctrl'
// });
}])
.controller('RightPanelCtrl', ['$scope','$rootScope', 'FinSelection', function($scope,$rootScope,FinSelection) {
$... | fingergit/visual-app-creator | app/home/rightpanel.js | JavaScript | apache-2.0 | 6,339 |
var madrona = {
onShow: function(callback) { callback(); },
setupForm: function($form) {
//var submitted = false;
$form.find('.btn-submit').hide();
$form.find('label').each(function (i, label) {
if ($(label).find('input[type="checkbox"]').length) {
$(label)... | Ecotrust/PEW-EFH | media/js/scenarios.js | JavaScript | apache-2.0 | 76,896 |
/*
* Copyright 2016 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... | jenmalloy/enmasse | agent/lib/artemis.js | JavaScript | apache-2.0 | 22,695 |
// import loadAll from 'ember-osf-web/utils/load-relationship';
import {
module,
test,
} from 'qunit';
module('Unit | Utility | load relationship');
// Replace this with your real tests.
test('it works', function(assert) {
assert.ok(true);
});
| hmoco/ember-osf-web | tests/unit/utils/load-relationship-test.js | JavaScript | apache-2.0 | 258 |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 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/github/create-token/lib/options.js | JavaScript | apache-2.0 | 1,870 |
'use strict';
var os = require('os');
var DeviceController = require('./DeviceController.js');
var DeviceModel = require('./../model/DeviceModel');
var Firebase = require('firebase');
var chalk = require('chalk');
var config = require('./../config.json');
function ClientController() {
var deviceController;
var ... | GoogleChromeLabs/MiniMobileDeviceLab | PiLab/controller/ClientController.js | JavaScript | apache-2.0 | 1,792 |
var mustacheLib = require('/lib/xp/mustache');
var portalLib = require('/lib/xp/portal');
var foosRetrievalLib = require('/lib/foos-retrieval');
var foosUrlLib = require('/lib/foos-url');
var foosUtilLib = require('/lib/foos-util');
var gamesWidgetLib = require('/lib/widgets/games/games');
var view = resolve('game.htm... | GlennRicaud/foos-app | src/main/resources/site/parts/game/game.js | JavaScript | apache-2.0 | 5,630 |