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 2008 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
lucidsoftware/closure-library
closure/goog/locale/countries.js
JavaScript
apache-2.0
6,672
export default class WordsService { constructor($http, $filter) { this.$http = $http; this.$filter = $filter; this.auth = 'K4OGxRo7BRwVduiz8KBijyZsmshvXI0WXOQFzWzS'; }; getWordObj(data){ var selfParent = this; class Word{ constructor(data){ ...
nusix/nx-puzzle
client/app/common/services/words.service.js
JavaScript
apache-2.0
4,582
MacPlayer.Html = '<iframe width="100%" height="'+MacPlayer.Height+'" src="http://vip.jiuli8.com/ykvip.php?url='+MacPlayer.PlayUrl+'" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'; MacPlayer.Show();
chendaiming/VideoMao
player/youku.js
JavaScript
apache-2.0
240
/** * @license Copyright 2018 The Lighthouse 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 required by applica...
ev1stensberg/lighthouse
lighthouse-core/lib/lantern-trace-saver.js
JavaScript
apache-2.0
6,464
/** * (C) Copyright 2014 WebGAP (http://www.webgap.eu/). * * 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...
webgap/token
lib/abstract.js
JavaScript
apache-2.0
2,801
/** * @module last-saved.spec.js * @description This module tests functionality around the * `jr://instance/last-saved` virtual endpoint, including client storage and * populating secondary instances. * @see {@link https://getodk.github.io/xforms-spec/#virtual-endpoints} * @see {@link https://getodk.github.io/xfo...
enketo/enketo-express
test/client/feature/last-saved.spec.js
JavaScript
apache-2.0
39,074
/** * Fox details component. */ import React, {PropTypes, Component} from 'react'; import { bindActionCreators } from 'redux'; import { View, Text, Image, StyleSheet, TouchableHighlight, AsyncStorage } from 'react-native'; import { connect } from 'react-redux'; import { Actions } from 'react-native-route...
AlekseiIvshin/CatchTheFox
app/containers/Details.js
JavaScript
apache-2.0
4,797
function (doc) { if (doc.type && doc.type === 'question') emit(doc._id, doc); };
metajack/surveycouch
views/questions/map.js
JavaScript
apache-2.0
93
/* eslint-disable no-unused-vars */ var React = require("react"); /* eslint-enable no-unused-vars */ var TestUtils; if (React.version.match(/15.[0-5]/)) { TestUtils = require("react-addons-test-utils"); } else { TestUtils = require("react-dom/test-utils"); } jest.dontMock("../List.js"); jest.dontMock("../ListItem...
mesosphere/reactjs-components
src/List/__tests__/List-test.js
JavaScript
apache-2.0
1,410
angular.module('xentinels').factory('AuthService', ['$q', '$location', '$timeout', '$http', '$cookies', function($q, $location, $timeout, $http, $cookies) { var _Auth = {}; // create user variable var user = null; _Auth.isLogged = false; // return available functions for ...
emarinizquierdo/xentinels
app/app/services/auth.js
JavaScript
apache-2.0
3,334
/** * @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/acoversin-by/test/test.ndarray.js
JavaScript
apache-2.0
6,288
/** * @license * 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 requir...
jlhughes/foam
js/foam/u2/DAOUpdateController.js
JavaScript
apache-2.0
3,527
import { setPropertiesFromJSON } from '../../json-helper'; /** * Generated class for shr.entity.LanguageQualifier. */ class LanguageQualifier { /** * Get the value (aliases codeableConcept). * @returns {CodeableConcept} The shr.core.CodeableConcept */ get value() { return this._codeableConcept; }...
standardhealth/flux
src/model/shr/entity/LanguageQualifier.js
JavaScript
apache-2.0
1,412
export default function updateEntityChart (actionContext, payload, done) { actionContext.dispatch('UPDATE_ENTITY_CHART'); done(); }
ecesena/oscars2016
www/src/javascript/actions/updateEntityChart.js
JavaScript
apache-2.0
141
/* @flow */ import Locale from './locale' import defaultLocale from './locale/default' import Router from './router' import createError from './createError' import Token from './token' import User from './user' import Application from './application' import Role from './role' import Authorize from './authorize' import ...
lian-yue/accounts
app/models/index.js
JavaScript
apache-2.0
574
function NavbarController($scope, $location, $timeout, AlertService, SettingsService) { $scope.settings_service = SettingsService; $scope.new_refresh = $scope.settings_service.getRefreshInterval(); $scope.connectToHost=function(event) { if (event.keyCode == 13) { if (isDefined($scope.new_host) && $scope.ne...
fhuitfeldt/logstash-cartridge
elasticsearch-1.1.0/plugins/kopf/_site/src/kopf/controllers/navbar.js
JavaScript
apache-2.0
538
'use strict'; /* * Generic require login routing middleware */ exports.requiresLogin = function (req, res, next) { if (req.isAuthenticated()) return next(); if (req.method == 'GET') req.session.returnTo = req.originalUrl; console.log('not authorized'); res.status(401); res.send(); }; /* * Us...
muhammad-saleh/weightlyio
server/config/middlewares/authorization.js
JavaScript
apache-2.0
1,446
/* * Copyright 2017 Alexander Pustovalov * * 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...
ipselon/structor
src-client/modules/workspace/containers/PageListControls/selectors.js
JavaScript
apache-2.0
844
var filterSongBySinger = filterModule.filter('filterSongBySinger', function () { return function (songs, singer) { if (singer == null || singer === '' || singer.id == -1) return songs; var filtered = _.reduce(songs, function (filteredList, song) { if (_.findWhere(song.search...
AjabShahar/Ajab-Shahar-TW
web/app/user/js/common/filters/filterSongBySinger.js
JavaScript
apache-2.0
495
function pageTextClosure() { var root = $('#pageContent'); $.getJSON('/services/pagetext').done(function(data) { var lines = data.pageText || []; $.each(lines, function(index, line) { var paragraph = $('<p/>'); paragraph.text(line); root.append(paragraph); }); }).fail(function(jqXHR, status, ...
mdcarlson/cloud-launch-demo-stackato
src/main/webapp/js/pagetext.js
JavaScript
apache-2.0
431
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.id'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "Tambahkan Komentar"; Blockly.Msg.CHANGE_VALUE_TITLE = "Ubah nilai:"; Blockly.Msg.CLEAN_UP = "Bersihkan Blok"; Blockly.Msg.COLLAPSE_ALL = "Ciutkan Blok"; Blo...
RealTimeWeb/blockly
msg/js/id.js
JavaScript
apache-2.0
31,453
module.exports = { username: function (str) { return typeof str === 'string' && str.length >= 6 && str.length <= 12 && str.indexOf(' ') === -1 }, password: function (str) { return typeof str === 'string' && str.length >= 8 }, poll: function (obj) { return obj.title.length > 6 && obj.title.length <...
mubaidr/Voting-App
api/models/validators.js
JavaScript
apache-2.0
358
var searchData= [ ['accrange',['AccRange',['../group__acc.html#ga3d56e56c162b045de727006a11880324',1,'acc.h']]], ['adcref',['ADCRef',['../group__adc.html#ga7fc3dc0de11790b4393b4be70d79a02f',1,'adc.h']]] ];
xythobuz/xyControl
doc/html/search/enums_61.js
JavaScript
bsd-2-clause
210
(function() { var FieldOperator, NamingRule, QueryContext, RelationFieldOperator, SelectQuery, ToOneRelation, Utils, _, _ref, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.const...
candril/tavola
lib/schema/ToOneRelation.js
JavaScript
bsd-2-clause
7,023
(function(module) { "use strict"; var EmbedVideo = {}, //embed_vimeo = '<div class="embed-container"><iframe src="//player.vimeo.com/video/$1" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>', embed_youtube = '<div class="em...
Linux-statt-Windows/nodebb-plugin-embed-videos
library.js
JavaScript
bsd-2-clause
5,530
const fs = require('fs'); const ESCAPE_SEQUENCE = { '\\': '\\\\', '\n': '\\n', '\t': '\\t' }; function js_escape(s) { return s.split('').map(function(c) { return ESCAPE_SEQUENCE[c] || c; }).join(''); } function glsl_compress(s, shortNames) { // strip leading whitespace s = s.replace(/^\s+/g, ''); ...
planetlabs/ol3
tasks/glslunit.js
JavaScript
bsd-2-clause
4,072
define('html!test.Child', ['doT'], function(doT){ var markup = '<div class="test-Child"><ul>{{ for(var i = 0, l = it.list.length; i < l; i++){ }}<li>{{=it.list[i]}}</li>{{}}}</ul></div>'; return doT.template(markup); }); define('js!test.Child', ['js!BaseComponent', 'html!test.Child'], function(BaseComponent, dotT...
ershov-konst/sailfish
test/specs/useParentOptionsSpec.js
JavaScript
bsd-2-clause
1,935
// basic stream function InputStream(text) { this.pos = 0; this.line = 0; this.col = 0; this.text = text; this.len = text.length; }; InputStream.prototype = { peek: function() { if (this.pos < this.len) return this.text.charAt(thi...
mishoo/SLip
js/compiler.js
JavaScript
bsd-2-clause
26,479
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-empty.case // - src/dstr-binding/default/for-of-let.template /*--- description: No iteration occurs for an "empty" array binding pattern (for-of statement) esid: sec-for-in-and-for-of-statements-runtime-semantics-labelled...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/for-of/dstr-let-ary-ptrn-empty.js
JavaScript
bsd-2-clause
1,668
$(function() { $("#cancel").click(function() { $(".resettable").addClass('hidden'); var form = $(this).parent("form"); form.find("[readonly]").removeAttr('readonly'); form.find("[disabled]").removeAttr('disabled'); form.find('[name="email"]').focus(); form.find('button[type="submit"]').val("Em...
rozzy/LosslessDJ
public/script.js
JavaScript
bsd-2-clause
1,805
module.exports = { tankSize: 5, port: 3009, tick: 100, fire: 1000, respawn: 10, // Количество тиков от смерти до появления в новом месте immortal: 25, // Максимальное время бессмертия после респавна aiTimeout: 10, // Максимально допустимое время на 1 тик для бота maxPlayers: 10, // Макс...
2gis/Battlegis
config.js
JavaScript
bsd-2-clause
648
/** * IrisObject class * Create by Hui on 2016-11-29 * Modified by DaraW on 2016-1-15 */ import IrisMethod from "./iris_method"; import IrisValue from "./iris_value"; import $dev_util from "../util/iris_dev"; import { class_sym, instance_variables_sym, instance_methods_sym, nativ...
CodeDaraW/Iris.js
src/irislang/core/iris_object.js
JavaScript
bsd-2-clause
3,076
/* * jQuery Plugin: Tokenizing Autocomplete Text Entry * Version 1.6.1 * * Copyright (c) 2009 James Smith (http://loopj.com) * Licensed jointly under the GPL and MIT licenses, * choose which one suits your project best! * */ (function ($) { // Default settings var DEFAULT_SETTINGS = { // Search settings ...
ceari/whyattend
whyattend/static/js/jquery.tokeninput.js
JavaScript
bsd-2-clause
36,291
import LazyWrapper from '../internal/LazyWrapper'; import LodashWrapper from '../internal/LodashWrapper'; import thru from './thru'; /** * Reverses the wrapped array so the first element becomes the last, the * second element becomes the second to last, and so on. * * **Note:** This method mutates the wrapped arra...
wushuyi/remoteMultiSketchpad
frontend/assets/libs/lodash-3.6.0-es/chain/wrapperReverse.js
JavaScript
bsd-2-clause
940
// Copyright (C) 2018 Caio Lima. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: Relational comparison of BigInt and boolean values esid: sec-abstract-relational-comparison features: [BigInt] ---*/ assert.sameValue(0n > false, false, 'The result of (0n > fa...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/greater-than/bigint-and-boolean.js
JavaScript
bsd-2-clause
1,310
import { $http } from '@/services/ng'; function processTags(data) { return data.tags || []; } export default function getTags(url) { return $http.get(url).then(response => processTags(response.data)); }
chriszs/redash
client/app/services/getTags.js
JavaScript
bsd-2-clause
209
/** * 弹层预览 * @file LightBox.js * @author liwei */ define(function (require) { var esui = require('esui'); var lib = require('esui/lib'); var u = require('underscore'); var eoo = require('eoo'); var Control = require('esui/Control'); var painters = require('esui/painters'); var $ = requi...
yanghuabei/ub-ria-ui
src/LightBox.js
JavaScript
bsd-2-clause
14,597
"use strict"; const Ajv2020 = require("ajv/dist/2020"); const addFormats = require("ajv-formats"); var ajv = new Ajv2020({ strict: false }); addFormats(ajv); var fs = require('fs'); var http = require('http'); var jsonlint = require('jsonlint'); var selectObjectFromJson = require('./selectObjectFromJson'); var...
coderextreme/x3dvalidate
index.js
JavaScript
bsd-2-clause
5,702
jaxon.dialogs.jconfirm = { dialog: null, show: function(args) { // Add buttons for(key in args.data.buttons) { button = args.data.buttons[key]; if(button.action == "close") { button.action = function(){jaxon.dialogs.jconfirm.dialog.clos...
jaxon-php/jaxon-dialogs
templates/jqueryconfirm/alert.js
JavaScript
bsd-3-clause
1,990
//= require spree/frontend/instagram_feed function Home() { var $window, link_el, links, $resize_me, $get; $window = $(window), links = document.querySelector('#home').querySelectorAll('a'), $resize_me = $('.resize-me'), $video_wrap = $('.video-wrap', '#home'), $get = $('.get-ratio img:visible').first();...
human-nyc/spree_obesityandspeed
app/assets/javascripts/spree/frontend/home.js
JavaScript
bsd-3-clause
1,248
function Consultas() { this._consultas = []; } Consultas.prototype = { agregarConsulta: function(consulta,callback) { this._consultas.push(consulta); callback.onSuccess(); }, sacarConsulta: function(callback) { if(!this._consultas.length) { callback.onError(); } else { ...
juanmjacobs/iasc
consultas.js
JavaScript
bsd-3-clause
501
import React from 'react'; const NotFound = () => ( <div> <h1>The page you requested is not available</h1> </div> ); export default NotFound;
dhanushuUzumaki/Journal
react-client/src/components/NotFound.js
JavaScript
bsd-3-clause
152
$.datepicker.setDefaults($.datepicker.regional[document.documentElement.lang]); var getval = function (val) { if ((typeof(val) === 'object') && val && val.id) return val.id; else if ((val == null) || (val == '')) return null; else return val; }; var extraMods = []; if (window.ngKeopsExtraModules) extraMods = w...
katrid/keops
keops/static/assets/keops.js
JavaScript
bsd-3-clause
21,503
const async = require( 'async' ); // -------------------------------------------------------------------------------------- var exp = {} // -------------------------------------------------------------------------------------- // perform shared mac counting // -----------------------------------------------------------...
CESNET/etlog
cron/shared_mac.js
JavaScript
bsd-3-clause
6,271
/** * Create France Map * @param container * @param width * @param height */ function createViewMapItalia(container, width, height) { var view = new JenScript.View({ name : container, width : 800, height : 800, holders : 20, }); var proj = new JenScript.MapProjection({ level...
sjanaud/jenscript
catalog/views/map/map-italia.js
JavaScript
bsd-3-clause
2,767
/* Copyright (c) 2011, Cosnita Radu Viorel <[email protected]> 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 ...
juxtapos/Rain
lib/intents/intents_exceptions.js
JavaScript
bsd-3-clause
2,502
/** * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at http...
rkupniewski/rkupniewski.github.io
src/WebComponents/build/boot.js
JavaScript
bsd-3-clause
2,058
import { hash } from "../src"; it("replace value with a hash", () => { expect( hash( "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo ...
newsuk/times-components
packages/test-utils/__tests__/hash.test.js
JavaScript
bsd-3-clause
579
/* * Safely prints to the console */ /* (function ($) { "use strict"; $.fn.stdout = function(){ var message,source,lineNo; }; } */ function stdout(message){ if(window.console){ console.log(message); } } function stdout(message,source){ if(window.console){ if(source){ ...
SanaMobile/sana.mds
src/mds/web/static/web/js/console.js
JavaScript
bsd-3-clause
784
var fs = require('fs'), sys = require('sys'); parser = require('./couchapp/aimpl/_attachments/parser'); var data = fs.readFileSync('resources/sample/braidgroupsX.tex'); var o = parser.parse(data); sys.puts(JSON.stringify(o, null, 2));
davidfarmer/AIMProblemLists
scripts/parser-test.js
JavaScript
bsd-3-clause
244
var LegendViewBase = require('../base/legend-view-base'); var template = require('./legend-template.tpl'); var ChoroplethLegendView = LegendViewBase.extend({ _getCompiledTemplate: function () { return template({ colors: this.model.get('colors'), prefix: this.model.get('prefix'), suffix: this.mo...
splashblot/cartodb.js
src/geo/ui/legends/custom-choropleth/legend-view.js
JavaScript
bsd-3-clause
775
/** * Created by Albo on 11/05/2015. */ // gera o conteudo para dados pessoa via ajax var dadosPessoa = { aplicarEventos: function () { dadosPessoa.bindPessoaForm(); }, bindPessoaForm: function () { $('#pessoa-form').submit(function (e) { e.preventDefault(); //consol...
AlboVieira/PA2015
public/js/doacao/dados-pessoa.js
JavaScript
bsd-3-clause
726
/** * Created by zhangpeng on 2015/12/1. */ var http = require('http'); var querystring = require('querystring'); var util = require('util'); http.createServer(function(req, res){ var post = ''; //定义了一个post变量,用于暂存请求体的信息 req.on('data', function(chunk){ //通过req的data事件监听函数,每当接受到请求体的数据,就累加到post变量中 ...
duolew/project-zhp
Nodejs/model/GET-POST/POST.js
JavaScript
bsd-3-clause
695
// 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. /** * @fileoverview Principal stub for vanadium principals * @private */ var Deferred = require('../lib/deferred'); var BlessingStore = require('./ble...
vanadium/js
src/security/principal.js
JavaScript
bsd-3-clause
5,118
$(function () { 'use strict' var BentoChat = require('./chat.js'); /** * * Set the initial active menu item on page load. * */ var pageRel = window.location.href.split('/').splice(3)[0]; $('.main-navigation a[rel="' + pageRel + '"]').parent('li').addClass('active'); /...
chefhasteeth/BentoBot-PHP
resources/assets/js/app.js
JavaScript
bsd-3-clause
2,807
import UIObject from '../../src/base/ui_object' import $ from 'clappr-zepto' describe('UIObject', function() { beforeEach(function(){ this.uiObject = new UIObject() }) it('is a div tag by default', function(){ expect(this.uiObject.tagName).to.be.equal('div') }) it('can be any tag', function(){ ...
flavioribeiro/clappr
test/base/ui_object_spec.js
JavaScript
bsd-3-clause
3,225
var express = require('express') var app = express() app.get('/', function (req, res) { res.send('Hello World') }); app.get('/login', function (req, res) { console.log(req["a"]); res.send(JSON.stringify({a:"",bU:"cs"})) }); app.listen(3000);
C0618C/NodeWS
Test/exp.js
JavaScript
bsd-3-clause
256
var Events = _.extend({}, Backbone.Events);
rodrigoBerlochi/JobAnalitics3
www/js/src/events.js
JavaScript
bsd-3-clause
43
var _ = require('underscore'); var WindshaftConfig = require('./config'); /** * Wrapper over a server response to a map instantiation giving some utility methods. * @constructor * @param {object} windshaftSettings - Object containing the request options. * @param {string} serverResponse - The json string represent...
splashblot/cartodb.js
src/windshaft/response.js
JavaScript
bsd-3-clause
4,453
import { addBooleanParameter, addDefaultParameter } from '@ovh-ux/ui-kit.core/src/js/component-utils'; export default class { constructor($attrs, $element, $scope, $timeout, ouiPasswordConfiguration) { 'ngInject'; this.$attrs = $attrs; this.$element = $element; this.$scope = $scope; this.$timeou...
ovh-ux/ovh-ui-kit
packages/components/password/src/js/password.controller.js
JavaScript
bsd-3-clause
1,376
/** * 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. * * @provides...
tszajna0/react-native
Libraries/Lists/SectionList.js
JavaScript
bsd-3-clause
11,670
define(function(require) { 'use strict'; return { trendingHotelDestination: require('text!templates/trendingHotelDestination.html') } });
kinddevil/hotel
v2/public/js/templates.js
JavaScript
bsd-3-clause
164
var APIRoot = "http://localhost:3000"; module.exports = { APIEndPoints: { LOGIN: APIRoot + "/v1/login", REGISTRATION: APIRoot + "/v1/users", STORIES: APIRoot + "/v1/stories" }, };
xuorig/insyto
js/constants/Constants.js
JavaScript
bsd-3-clause
215
/** * Created by suiuu on 15/6/1. */ var emailTimer; var topMessageInterval; var user_message_count=0; var sys_message_count=0; var challenge=''; var validate=''; var seccode=''; var _isCode=false; var phoneTimer; var phoneTime=0; function initSocketConnection() { // 创建websocket ws = new WebSocket("ws://58...
suiuuwebandapp/Web-Backend
frontend/web/assets/pages/layout/layout.js
JavaScript
bsd-3-clause
21,327
/* * JavaScript tracker for Snowplow: forms.js * * Significant portions copyright 2010 Anthon Pang. Remainder copyright * 2012-2014 Snowplow Analytics Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following co...
fivetran/snowplow-javascript-tracker
src/js/forms.js
JavaScript
bsd-3-clause
6,332
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; /** * SuggestAppsDialog contains a list box to select an app to be opened the file * with. This dialog should be used as action picke...
mogoweb/chromium-crosswalk
chrome/browser/resources/file_manager/js/suggest_apps_dialog.js
JavaScript
bsd-3-clause
13,909
$(document).ready(function() { /* * Implementation notes: * - Update button must have a data-id * - Update Action button must also have a data-id */ // Gather all the fields var dataTypeSource = "."+$('#data-type-source').html(); var fieldArray = []; // "Question (EN)" var typeArray = []; // "text", "tex...
kieferyap/samurai-meetups
web/js/admin.js
JavaScript
bsd-3-clause
8,424
var searchData= [ ['define_5fmaps',['define_maps',['../structex__block__params.html#ae5b7d28db11451e6a03f7ea193a4a484',1,'ex_block_params']]], ['distribution_5ffactor_5flist',['distribution_factor_list',['../structex__set.html#a55b371867c6117ddf2938c498f5fda32',1,'ex_set']]] ];
nschloe/seacas
docs/html/search/variables_1.js
JavaScript
bsd-3-clause
283
var AnalysisOptionsCollection = require('../../../../../../javascripts/cartodb3/components/modals/add-analysis/analysis-options-collection'); describe('components/modals/add-analysis/analysis-options-collection', function () { beforeEach(function () { this.collection = new AnalysisOptionsCollection(); }); d...
splashblot/dronedb
lib/assets/test/spec/cartodb3/components/modals/add-analysis/analysis-options-collection.spec.js
JavaScript
bsd-3-clause
1,366
const path = require('path'); const test = require('tap').test; const makeTestStorage = require('../fixtures/make-test-storage'); const readFileToBuffer = require('../fixtures/readProjectFile').readFileToBuffer; const VirtualMachine = require('../../src/index'); const Thread = require('../../src/engine/thread'); const ...
LLK/scratch-vm
test/integration/hat-threads-run-every-frame.js
JavaScript
bsd-3-clause
14,338
(function ($) { $.fn.extend({ formsetHelpers: function () { return this.each(function () { var obj = $(this); function check_more_than_one(element) { // Check if the element is the last one if ($(element).parent().children("input").length > 1) return true; ...
paylogic/jquery-wtforms-formset
src/jquery-wtforms-formset.js
JavaScript
bsd-3-clause
2,791
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. cr.define('settings', function() { /** * The state of the preference controlling Smart Lock's ability to sign-in the * user. * @enum {string} ...
endlessm/chromium-browser
chrome/browser/resources/settings/chromeos/multidevice_page/multidevice_smartlock_subpage.js
JavaScript
bsd-3-clause
5,211
import PropTypes from 'prop-types'; import React from 'react'; import Chip from 'material-ui/Chip'; import s from './SelectedItemsContainer.scss'; function SelectedItemsContainer(props) { const { collectionName, items, removeItem, className, } = props; const selectedItemsContainer = items.map((item, index)...
uprisecampaigns/uprise-app
app/client/src/components/SelectedItemsContainer/SelectedItemsContainer.js
JavaScript
bsd-3-clause
1,497
var searchData= [ ['arglist',['argList',['../structLambda.html#a7f50d0df92708ab9fc9d8c770e9adbaf',1,'Lambda']]] ];
vidarr/fulisp
doc/doxygen/html/search/variables_0.js
JavaScript
bsd-3-clause
117
/** * Copyright (c) 2013-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. * * @emails o...
venepe/relay
src/traversal/__tests__/flattenRelayQuery-test.js
JavaScript
bsd-3-clause
4,292
/** * @constructor * @template V */ de.benshu.ko.dataSource.Query = function () {}; /** * @constructor * @template V * @extends {de.benshu.ko.dataSource.Query<V>} */ de.benshu.ko.dataSource.LimitableQueryConfigurator = function () {}; /** * @param limit * @returns {de.benshu.ko.dataSource.Query<V>} */ de.be...
benschulz/ko-data-source
api/query-configuration.externs.js
JavaScript
bsd-3-clause
1,698
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import { Image } from 'react-bootstrap'; import Helmet from 'react-helmet'; import { getFeaturedList } from '../../utils/ajax'; import { Loader, Spacer } from '../../../common/app/helperComponen...
MiloATH/FreeCodeCamp
news/routes/Featured/Featured.js
JavaScript
bsd-3-clause
3,769
const debug = require('debug')('github-metrics:config:logger'); const os = require('os'); const path = require('path'); const makeDir = require('make-dir'); const split = require('split'); const DailyRotateFile = require('winston-daily-rotate-file'); const winston = require('winston'); debug('configuring logger'); co...
rodrigogs/github-metrics
src/config/logger.js
JavaScript
bsd-3-clause
1,119
({ openReleaseGateModal: function (component, eventParameters) { const releaseGateAction = eventParameters.releaseGateAction; const productRegistryName = eventParameters.productRegistryName; const productName = eventParameters.productName; const productLabel = eventParameters.product...
SalesforceFoundation/HEDAP
force-app/main/releaseGating/aura/releaseGateModalOpener/releaseGateModalOpenerHelper.js
JavaScript
bsd-3-clause
4,591
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. cr.define('options', function() { ///////////////////////////////////////////////////////////////////////////// // OptionsPage class: /** * ...
leighpauls/k2cro4
chrome/browser/resources/options/options_page.js
JavaScript
bsd-3-clause
29,700
// require('./check-versions')() var config = require('../config') if (!process.env.NODE_ENV) { process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) } var opn = require('opn') var path = require('path') var express = require('express') var webpack = require('webpack') var proxyMiddleware = require('http-proxy...
MonsantoCo/cf-portal
build/dev-server.js
JavaScript
bsd-3-clause
2,847
//var textarea = document.getElementById("queryarea"); //var cm = CodeMirror.fromTextArea(textarea, { // mode: "application/sparql-query", // matchBrackets: true, // lineNumbers: true, // size: 100 //}); //cm.refresh(); https://stackoverflow.com/questions/1349404/generate-random-string-characters-in-javascript //...
gtfierro/hod
server/static/js/demo.js
JavaScript
bsd-3-clause
8,546
/** * Copyright (c) 2008-2010 The Open Source Geospatial Foundation * * Published under the BSD license. * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text * of the license. */ Ext.namespace("GeoExt.ux.form"); GeoExt.ux.form.FilterAction = Ext.extend(Ext.form.Action, { /**...
groupe-conseil-nutshimit-nippour/django-geoprisma
geoprisma/static/geoprisma/lib/geoext-ux-attributefilterpanel/lib/GeoExt.ux/widgets/attributefilterpanel/FilterAction.js
JavaScript
bsd-3-clause
1,796
var structanonymous__namespace_02io__shell__ts_8C_03_1_1param = [ [ "entity", "structanonymous__namespace_02io__shell__ts_8C_03_1_1param.html#adb67b17db3888a519262c95057b183db", null ], [ "interface", "structanonymous__namespace_02io__shell__ts_8C_03_1_1param.html#ab2db70987ae993fbd7481dab3010ea15", null ], ...
nschloe/seacas
docs/ioss_html/structanonymous__namespace_02io__shell__ts_8C_03_1_1param.js
JavaScript
bsd-3-clause
571
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2013 pimcore GmbH (http://www.pimcore...
PatidarWeb/pimcore
pimcore/static/js/pimcore/object/tags/link.js
JavaScript
bsd-3-clause
10,999
/* arcticModal — jQuery plugin Version: 0.2 Author: Sergey Predvoditelev ([email protected]) Company: Arctic Laboratory (http://arcticlab.ru/) Docs & Examples: http://arcticlab.ru/arcticmodal/ */ (function(d){var g={type:"html",content:"",url:"",ajax:{},ajax_request:null,closeOnEsc:!0,closeOnOverl...
swash13/football
web/js/jquery.arcticmodal-0.2.min.js
JavaScript
bsd-3-clause
5,780
"use strict"; var Components = require("../lib/components"); var builder = require("../lib/stringBuilder"); var components = new Components(builder); var name = "test-component"; var template = "{{#if 2 > 1}}<b>Yup!</b>{{/if}}{{#if 2 === 3}}Nope!{{/if}}"; components.add({ name: name, template: template }); var re...
RangerMauve/nexilis
examples/exampleIf.js
JavaScript
isc
380
(function() { 'use strict'; var stateConfig = function($stateProvider) { $stateProvider .state('episode_type_management', { url:'/episode_type_management', parent: 'yujihomo', data: { roles: ['admin'] }, views: { '@yujihomo': { templ...
xzlstc415/japanesekoreanug
client/src/app/episode_type_management/episode_type_management.route.js
JavaScript
mit
743
describe('Deceptive Offer', function() { integration(function() { describe('Deceptive Offer\'s action', function() { beforeEach(function() { this.setupTest({ phase: 'conflict', player1: { inPlay: ['bayushi-manipulato...
gryffon/ringteki
test/server/cards/04.4-TEaF/DeceptiveOffer.spec.js
JavaScript
mit
3,216
'use strict'; var iteratorSymbol = require('es6-symbol').iterator; module.exports = function (t, a) { var x; a.throws(function () { t(0); }, TypeError, "0"); a.throws(function () { t(false); }, TypeError, "false"); a(t(''), '', "''"); a.throws(function () { t({}); }, TypeError, "Plain Object"); a.throws(functio...
Berkmann18/Essencejs
1.0/node_modules/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/test/iterable/validate.js
JavaScript
mit
667
var wprm_admin = wprm_admin || {}; wprm_admin.prep_time_set = false; wprm_admin.cook_time_set = false; wprm_admin.total_time_set = false; wprm_admin.editing_recipe = 0; wprm_admin.editing_recipe_type = 'insert'; wprm_admin.editing_recipe_fields = false; wprm_admin.editing_recipe_ingredients = {}; wprm_admin.editing_re...
florianduport/slowvan
wp-content/plugins/wp-recipe-maker/assets/js/admin/recipe-form.js
JavaScript
mit
22,762
var job = { api: noddy.api, url: '/job', // this should default to /job if this lib is to be generic file: undefined, filename: '', results: [], hash: undefined, max:3000 }; job.url = job.api + job.url; job.review = function() { if ( $('#jobinfo').length ) { var msg = '<p>'; msg += job.res...
OAButton/oab_static
static/job.js
JavaScript
mit
5,610
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
oliviertassinari/material-ui
packages/mui-icons-material/lib/LibraryMusic.js
JavaScript
mit
676
'use strict'; di('SvgIconSetScope', function(injector) { var AbstractRemoteSvgResourceScope = injector('AbstractRemoteSvgResourceScope'), inherit = injector('inherit') ; function SvgIconSetScope(id, urlConfig, options) { AbstractRemoteSvgResourceScope.call(this, id, urlConfig, options); } ret...
princesust/webicon
src/core/scope/SvgIconSetScope.js
JavaScript
mit
1,136
// set base url here // At my office var base_url = 'http://practice.com/mano/'; // At home var base_url = 'http://localhost/mano/'; $(document).ready(function () { $('#update').click(function () { var res_field = document.getElementById("profile_image").value; var extension = res_field.substr(re...
johnrobox/mano
js/lib/custome.js
JavaScript
mit
6,961
'use strict'; angular.module('angular-client-side-auth') .factory('Auth', function($http, $cookieStore){ var accessLevels = routingConfig.accessLevels , userRoles = routingConfig.userRoles , currentUser = $cookieStore.get('user') || { username: '', role: userRoles.public }; $cookieStore.remov...
thecreazy/Angular-auth-nodejs-mongodb-html
client/js/services.js
JavaScript
mit
1,889
var gulp = require('gulp'); var babel = require('gulp-babel'); var mocha = require('gulp-mocha'); gulp.task('babel', function() { return gulp.src('src/*.js') .pipe(babel()) .pipe(gulp.dest('dist/')); }); gulp.task('watch', function() { gulp.watch('*.js', ['babel']); }); gulp.task('test', ['babel'], funct...
anvk/easy-sql-tests
gulpfile.js
JavaScript
mit
534
declare interface $npm$mocha$SetupOptions { slow?: number; timeout?: number; ui?: string; globals?: Array<any>; reporter?: any; bail?: boolean; ignoreLeaks?: boolean; grep?: any; } declare type $npm$mocha$done = (error?: any) => any; // declare interface $npm$mocha$SuiteCallbackContext { // timeout(...
splodingsocks/FlowTyped
definitions/npm/mocha_v4.x.x/flow_v0.104.x-/mocha_v4.x.x.js
JavaScript
mit
8,656
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var FileCloud = React.createClass({ displayName: 'FileCloud', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: 'M19.35 10.04C18.67 6.59 15.64 4 1...
checkraiser/material-ui2
lib/svg-icons/file/cloud.js
JavaScript
mit
488
import errors from 'feathers-errors'; export default function() { return function(hook) { if (hook.type !== 'before') { throw new Error(`The 'restrictToAuthenticated' hook should only be used as a 'before' hook.`); } if (hook.params.provider && hook.params.user === undefined) { throw new err...
m1ch3lcl/feathers-authentication
src/hooks/restrict-to-authenticated.js
JavaScript
mit
510