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 |
|---|---|---|---|---|---|
/**
* @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/stats/base/dists/erlang/mgf/examples/index.js | JavaScript | apache-2.0 | 1,067 |
// VERSION: 1.0 LAST UPDATE: 18.12.2014
/*
* . . .
* | | |
* ,-. ,-. |-. . . |- |- ,-. ;-. ,-.
* | `-. | | | | | | | | | | `-.
* `-' `-' `-' `-` `-' `-' `-' ' ' `-'
*
* Social customs counter buttons (Facebook, Twitter, Google+, LinkedI... | cuongnt1987/qwap | src/main/webapp/resources/js/jquery.csbuttons.js | JavaScript | apache-2.0 | 8,000 |
/*
===================================================
AngularJS Scripts for Chinese Notebook
2016, Stacy Bridges
===================================================
*/
// Angular.JS
var portfolioApp = angular.module('myPortfolio', ['ngRoute']);
// routing definitions
portfolioApp.config(function ($routeProvider)... | stcybrdgs/stacybridges.com | js/portfolioApp.js | JavaScript | apache-2.0 | 1,228 |
/**
* Copyright 2018 The Subscribe with Google 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
*
* U... | taboola/amphtml | third_party/subscriptions-project/config.js | JavaScript | apache-2.0 | 31,837 |
'use strict';
describe('Factory: fbUserToBlogUserConverter', function() {
var fbUserToBlogUserConverter;
beforeEach(module('blogApp'));
beforeEach(inject(function(_FbUserToBlogUserConverter_) {
fbUserToBlogUserConverter = new _FbUserToBlogUserConverter_();
}));
it('should convert the fb User to blo... | rathilavkesh/BlogRepository | BlogWorkbench/ui/test/spec/factories/fbUserToBlogUserConverterSpec.js | JavaScript | apache-2.0 | 849 |
app.view('formView', ['$el'], function ($el) {
"use strict";
$el.parsley({
errorClass: "has-error",
classHandler: function(el) {
return el.$element.closest(".form-group");
},
errorsWrapper: "<span class='help-block'></span>",
errorTemplate: "<span></span>"
... | kaleidos/grails-admin-interface | web-app/grails-admin/js/views/formView.js | JavaScript | apache-2.0 | 5,050 |
/**
* Copyright 2008-2009 Zepheira LLC
*/
// configuration info
var AC = {
step: 0,
deck: null,
selector: function() {
return (!AC.deck) ? '.annotations:eq(0) div' : '#' + AC.deck + ' div';
},
ref: 'an:rel',
trigger: 'an:trigger',
highlight: 'annotate-highlight',
screenId: 'sc... | zepheira/open-science | client/js/annotate.js | JavaScript | apache-2.0 | 7,639 |
goog.module('grrUi.flow.startFlowFormDirective');
goog.module.declareLegacyNamespace();
const {ApiService, stripTypeInfo} = goog.require('grrUi.core.apiService');
const {ReflectionService} = goog.require('grrUi.core.reflectionService');
/**
* Controller for StartFlowFormDirective.
* @unrestricted
*/
const StartFl... | google/grr | grr/server/grr_response_server/gui/static/angular-components/flow/start-flow-form-directive.js | JavaScript | apache-2.0 | 3,387 |
/** Rejected Controller
*
*
*/
// const config = require('../config/db')
const Rejected = require('../models/rejected')
const Profile = require('../models/profile')
const ObjectID = require('mongodb').ObjectID
/**
*
* @param {HTTP Request} req
* @param {HTTP Response} res
*
* @return {HTTP Response}
* ... | JEVietti/DealBreaker-WebJS | controllers/rejected.js | JavaScript | apache-2.0 | 4,351 |
var jsDateHelper = require('./jsDateHelper');
describe('jsDateHelper', function(){
describe('getDate() method', function(){
it('should return the Date data type when specifying the ISO 8601 date format', function(){
var stringDate = '2015-04-24T10:00:00.000Z';
var date = jsDateHelper.getDate(stringDa... | martinjirku/jsDateHelper | lib/jsDateHelper.spec.js | JavaScript | apache-2.0 | 3,560 |
var Ziggeo = require("../index.js");
var ZiggeoSdk = new Ziggeo(process.argv[2], process.argv[3]);
ZiggeoSdk.Application.get_stats({}, {
success: function (stats) {
console.log(stats);
},
failure: function (args, error) {
console.log(error);
}
}); | Ziggeo/ZiggeoNodeSdk | demos/application_stats.js | JavaScript | apache-2.0 | 256 |
const Steveo = require('../../lib').default;
const steveoConfig = require('./config');
const bunyan = require('bunyan');
const logger = bunyan.createLogger({ name: 'producer' });
(async () => {
const config = steveoConfig[process.env.ENGINE];
if (!config) {
return;
}
const steveo = Steveo(config, logger)... | ordermentum/steveo | examples/full/producer.js | JavaScript | apache-2.0 | 1,556 |
var a00263 =
[
[ "AmbigSpec", "a00263.html#aaa3a04113f5db03951771afa6423e7f4", null ],
[ "~AmbigSpec", "a00263.html#a5283933a9e7267b3505f5f18cf289f3e", null ],
[ "correct_fragments", "a00263.html#ad3a4b121b26cf829422700494aed91e4", null ],
[ "correct_ngram_id", "a00263.html#a879c6167dbfc54980bfeb5a15b32... | stweil/tesseract-ocr.github.io | 3.x/a00263.js | JavaScript | apache-2.0 | 568 |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "add-favorite";
const pathData = "M322.5 195q-6-2-11-5.5t-5-7.5l-48-97-49 97q-4 4-9.5 8.5t-10.5 4.5l-108 15 77 74q4 4 7 11t1 12l-18 108 71-36q8-6 18-3t16 13q5 8 2 18t-13 15l-117 62q-8 4-15.5 2.5... | SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/v5/add-favorite.js | JavaScript | apache-2.0 | 890 |
$(document).ready(function () {
//Apache 2.0 license on aviso_legal_licencia.html
$("<div/>", {
href: "aviso_legal_licencia.html",
"appendTo": ".asf_terms",
"class": "license",
html: "<h1/><p/><p/><p/>",
});
$(".license").find("h1").eq(0).html("Copyright 14/6/2017 AML Productions");
$(".license").... | jorgeAML/medicinaresources.github.io | java/license/license.js | JavaScript | apache-2.0 | 1,082 |
/**
* @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/stats/base/dists/kumaraswamy/skewness/lib/index.js | JavaScript | apache-2.0 | 1,103 |
define('crm/Integrations/BOE/Views/ERPShipTos/Edit', ['module', 'exports', 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/_base/connect', 'argos/Edit', '../../Models/Names', 'crm/Format', 'crm/Validator', 'argos/I18n'], function (module, exports, _declare, _lang, _connect, _Edit, _Names, _Format, _Validator, _I18n) {
... | Saleslogix/argos-saleslogix | src-out/Integrations/BOE/Views/ERPShipTos/Edit.js | JavaScript | apache-2.0 | 10,148 |
/**
* ueditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示*************... | sunyang3721/tjd-timehr | ueditor/editor_config.js | JavaScript | apache-2.0 | 19,925 |
$(document).ready(function () {
// hide additional questions by default for js disabled feature
$(".moreQuestions").hide();
$(".hiddenHelp").hide();
//book appointment page click action
$("#medCentres li").click(function() {
$("#medCentres li.selected").removeClass("selected");
$(this).addClass("selecte... | NHSChoices/nhs111-prototypes | prototypes/referral-signposting/static-journey/content/custom.js | JavaScript | apache-2.0 | 4,878 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-tag-names/test/fixtures/valid.js | JavaScript | apache-2.0 | 4,982 |
/**
* FILE: ShowBuildingContextualMenu.js
* PERCORSO /Codice/sgad/clienttier/controller/actions/ShowBuildingContextualMenu.js
* DATA CREAZIONE: 21 Febbraio 2014
* AUTORE: ProTech
* EMAIL: protech.unipd@gmail.com
*
* Questo file è proprietà del gruppo ProTech, viene rilasciato sotto licenza Apache v2.
*
* DIARI... | protechunipd/SGAD | Codice/sgad/clienttier/controller/actions/ShowBuildingContextualMenu.js | JavaScript | apache-2.0 | 1,908 |
/**
* Just an amd wrapper for asciidoctor.js
*/
define('lib/asciidoctor', function() {
return Opal;
}); | christiangalsterer/bitbucket-asciidoc-plugin | src/main/resources/static/lib/asciidoctor/asciidoctor-wrapper.js | JavaScript | apache-2.0 | 109 |
/**
* @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/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js | JavaScript | apache-2.0 | 2,932 |
TableViewController = ApplicationController.extend({
template: 'tableView',
yieldRegions: {},
subscriptions: function() {},
data: function() {}
}); | katrotz/splitify | lib/routing/table/controller/main.table.view.js | JavaScript | apache-2.0 | 155 |
/**
* Created by tomihei on 17/02/10.
*/
import React from 'react'
import { connect } from 'react-redux'
import Login from '../components/loginForm/loginform'
import * as login from '../actions/login'
function mapStateToProps(state) {
return {
form: state.loginFormInput,
loginInfo: state.loginInfo,
ne... | motion123/mbookmakerUI | src/containers/login.js | JavaScript | apache-2.0 | 1,039 |
/**
* @author Your Name
* @copyright Your office or the organisation that pays you
* @license MIT license
*/
/**
* @requires sMap/Module.js
*/
sMap.Module.Popup = OpenLayers.Class(sMap.Module, {
/**
* - selected
* - unselected
*
* Look at the event listeners as a public API of the module.
*/
EVEN... | getsmap/smap4 | modules/Module/Popup/Popup.js | JavaScript | apache-2.0 | 10,405 |
/*
Copyright 2016 IBM Corporation
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 writing, software... | ibm-wch/wchtools-cli | CLI/test/unit/lib/push.unit.js | JavaScript | apache-2.0 | 153,609 |
import { expect } from "chai";
import RxPlayer from "../../../src";
import sleep from "../../utils/sleep.js";
import { waitForLoadedStateAfterLoadVideo } from "../../utils/waitForPlayerState";
import XHRMock from "../../utils/request_mock";
/**
* Performs a serie of basic tests on a content.
*
* @param {Object} man... | canalplus/rx-player | tests/integration/utils/launch_tests_for_content.js | JavaScript | apache-2.0 | 62,696 |
export { default } from './NavDivider';
| folio-org/stripes-core | src/components/MainNav/NavDivider/index.js | JavaScript | apache-2.0 | 40 |
/**
* Created with JetBrains WebStorm.
* User: k-nkgwj
* Date: 13/01/26
* Time: 15:35
* To change this template use File | Settings | File Templates.
*/
var Compiler = (function () {
function Compiler(fileType) {
this.fileType = fileType;
this.executable = Compiler.collections[fileType];
}
Compile... | nkgwj/hub_test | js/compiler.js | JavaScript | apache-2.0 | 1,272 |
/*
* Copyright 2015 Phillip Hayward <phil@pjhayward.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 ... | ideastorm/formula-w | src/services/debounce.js | JavaScript | apache-2.0 | 986 |
'use strict';
import { CLUSTER_SERVICE } from 'core/cluster/cluster.service';
import { CloudProviderRegistry, ProviderSelectionService } from 'core/cloudProvider';
import { NameUtils } from 'core/naming';
import { Registry } from 'core/registry';
import { SERVER_GROUP_COMMAND_BUILDER_SERVICE } from 'core/serverGroup/c... | ajordens/deck | app/scripts/modules/core/src/pipeline/config/stages/deploy/deployStage.js | JavaScript | apache-2.0 | 9,918 |
/*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable la... | ONLYOFFICE/CommunityServer | module/ASC.UrlShortener/app/app.js | JavaScript | apache-2.0 | 2,798 |
/**
* @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/assert/is-docker/lib/index.js | JavaScript | apache-2.0 | 998 |
'use strict';
var controller = source('controllers/tessels_controller');
var db = source('models'),
User = db.User,
Tessel = db.Tessel;
var MockRequest = require('../support/mock_request'),
MockResponse = require('../support/mock_response');
var MockPromise = function MockPromise() {
this.error = stub... | tessel/cloud | test/specs/tessels_controller.spec.js | JavaScript | apache-2.0 | 6,763 |
'use strict';
/**
* @ngdoc overview
* @name evaluateApp
* @description
* # evaluateApp
*
* Main module of the application.
*/
angular
.module('evaluateApp', [
'oc.lazyLoad',
'ui.router',
'ui.bootstrap',
'angular-loading-bar',
'ngResource',
'ngCookies',
'smart-table'
])
.config([... | IIC3143-Equipo1/angularJS | app/scripts/app.js | JavaScript | apache-2.0 | 19,983 |
"use strict";
var querystring = require("querystring");
/* collapse by the keys in the array and sum together the values */
function collapseKeysAndSum(inputArray, keyCollapseFunction) {
var map = {};
inputArray.forEach(function(element) {
var key = keyCollapseFunction ? keyCollapseFunction(element.k... | healthonnet/hon-couchdb-visualization | server/constants.js | JavaScript | apache-2.0 | 9,324 |
__pragma__ ('stripcomments')
/* Nested module-object creator, part of the nesting may already exist and have attributes
A Transcrypt applicaton consists of a main module and additional modules.
Transcrypt modules constitute a unique, unambiguous tree by their dotted names, no matter which of the alternative modu... | QQuick/Transcrypt | transcrypt/modules/org/transcrypt/__core__.js | JavaScript | apache-2.0 | 14,066 |
function() {
var grdId = $(this).parent().parent().attr("grdid");
var newShirtSize = $(this).val();
var user = $("#user_name").text();
var app = $$(this).app;
changeShirtSize(app, grdId, newShirtSize, user);
$("#fltdetail").trigger("update");
return false;
};
//@ sourceURL=flight_other/loggedIn/selec... | shmakes/hf-basic | evently/flight_other/loggedIn/selectors/Input[name='grd_shirt_size']/change.js | JavaScript | apache-2.0 | 355 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides the base implementation for all model implementations
sap.ui.define(['jquery.sap.global', 'sap/ui/core/format/DateFormat'... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/ui/model/type/Date-dbg.js | JavaScript | apache-2.0 | 6,521 |
/**
* Created by sdcuike on 15-10-28.
*
* From concatenating strings to template literals
*
*/
"use strict";
//es5
function printCoord(x,y){
console.log('(' + x + ',' + y +')');
};
printCoord(1,2);//(1,2)
//es6
function printCoordNew(x,y){
console.log(`(${x},${y})`);//(3,5)
}
printCoordNew(3,5);
//Mult... | sdcuike/book-reading | exploring-es6/ch04/sec04.js | JavaScript | apache-2.0 | 492 |
;(function(undefined) {
"use strict";
function isFunction(functionToCheck) { var getType = {}; return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; }
function randomBetween(l, h) { return l + Math.floor(Math.random() * (h-l+1)); }
function randomFromArray(arr) { if(... | lbdodds/RandomTables | javascript/script.js | JavaScript | apache-2.0 | 6,763 |
function AngularHelper() {
}
AngularHelper.rootScope = null;
AngularHelper.constants = null;
AngularHelper.commandHistory = new Undo.Stack();
AngularHelper.sceneSvc = null;
AngularHelper.activeCanvas = null;
AngularHelper.isActiveCanvasFocused = function() {
return AngularHelper.isElementFocused(AngularHelper.a... | scarlettgamestudio/scarlett-editor | app/scripts/general/angularHelper.js | JavaScript | apache-2.0 | 708 |
(function(){
var app = angular.module("jenovaApp");
function domainCtrl($scope, $state, $location, $rootScope, $stateParams, $timeout, Dialog, resource, mdToast, $q, currentData){
$scope.loadedPages = {$resolved: true};
$scope.infoHint = false;
$scope.infoNotFoundHint = false;
$scope.selected = [];... | inova-tecnologias/jenova-web | nginx/htdocs/app/components/domain/domain.controller.js | JavaScript | apache-2.0 | 27,503 |
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
Template.Admin_DataModel_Users_Page.helpers({
updateID() {
return Template.instance().updateID;
},
displayUpdateWidget() {
return Template.instance().updateID.get();
},
});
Template.Admin_DataModel_Users_P... | radgrad/radgrad | app/imports/ui/pages/admin/admin-datamodel-users-page.js | JavaScript | apache-2.0 | 400 |
jest.mock('react-i18next', () => ({
// this mock makes sure any components using the translate HoC receive the t function as a prop
withTranslation: () => Component => {
Component.defaultProps = {
...Component.defaultProps,
t: (key, options) =>
(options.defaultValue || '').replace(/{{(\w+)}}/g, (_, k) => ... | Talend/ui | packages/flow-designer/test/test-setup.js | JavaScript | apache-2.0 | 773 |
/**
* Copyright 2016 OSBI Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | OSBI/meteorite-core-ui | src/main/resources/src/js/components/saiku/QueryDesigner/stores/SelectedMeasuresStore.js | JavaScript | apache-2.0 | 2,050 |
/**
* Copyright (c) 2016 Guyon Roche
* LICENCE: MIT - please refer to LICENCE file included with this module
* or https://github.com/guyonroche/exceljs/blob/master/LICENSE
*/
'use strict';
var _ = require('../../../utils/under-dash');
var utils = require('../../../utils/utils');
var colCache = require('../../../... | YeGithubAdmin/JYHD | resources/Jy_admin/js/exceljs/lib/xlsx/xform/book/workbook-xform.js | JavaScript | apache-2.0 | 6,371 |
import _ from "lodash";
import PropTypes from 'prop-types';
import React from "react";
import {FormattedMessage, injectIntl} from 'react-intl';
import {DropdownButton, MenuItem} from "react-bootstrap";
import Locales from "../../utils/Locales";
class LocalesDropDown extends React.Component {
static propTypes ... | box/mojito | webapp/src/main/resources/public/js/components/screenshots/LocalesDropdown.js | JavaScript | apache-2.0 | 6,253 |
jQuery(document).ready(function ($) {
do_resize();
$(window).resize(function () {
do_resize();
});
function do_resize() {
$('.ots-team-view').each(function (index, el) {
var members = $(el).find('#sc_our_team.grid .sc_team_member, ' +
'#sc_our_team.grid_... | JimSadler/theburgessprocess2 | RealTalkBlog/wp-content/plugins/our-team-enhanced/assets/js/script.js | JavaScript | apache-2.0 | 1,184 |
/**
* @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/stats/incr/mmpe/benchmark/benchmark.js | JavaScript | apache-2.0 | 1,560 |
module.exports.fixed_partition = require('./layouts/fixed-partition.js');
module.exports.fixed_columns = require('./layouts/fixed-columns.js'); | naturalatlas/image-layout | index.js | JavaScript | apache-2.0 | 143 |
/**
* @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/blas/base/dasum/test/test.js | JavaScript | apache-2.0 | 2,044 |
//import * as promptly from 'promptly';
'use strict';
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newO... | cicorias/javascriptFun | src/es6v/lib/index.js | JavaScript | apache-2.0 | 647 |
exports.definition = {
config: {
columns: {
IDCoccion: 'TEXT PRIMARY KEY'
},
defaults: {
},
adapter: {
type: 'sql',
collection_name: 'cocciones_favoritas',
idAttribute: 'IDCoccion',
db_name: 'kanka'
},
debug: 0
},
extendModel: function(Model) {
... | pelluch/cache-test | app/models/coccion_favorita_sql.js | JavaScript | apache-2.0 | 518 |
/*!
* jQuery JavaScript Library v2.1.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-18T15:11Z
*/
/*
READ TIMES : 2
*/
(function(globa... | MYSHLIFE/codejs | client/assets/jquery/jquery.js | JavaScript | apache-2.0 | 262,492 |
var searchData=
[
['pageiteratorlevel',['PageIteratorLevel',['../a01278.html#aa26c22b65cc9765a0e747120f4287fd7',1,'tesseract']]],
['pagesegmode',['PageSegMode',['../a01278.html#a338d4c8b5d497b5ec3e6e4269d8ac66a',1,'tesseract']]],
['paragraphjustification',['ParagraphJustification',['../a01278.html#a550970d1662b3a... | stweil/tesseract-ocr.github.io | 3.x/search/enums_c.js | JavaScript | apache-2.0 | 1,227 |
/*
* 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")... | OpenSocial/explorer | opensocial-explorer-webcontent/src/main/javascript/modules/widgets/MenuItemWidget.js | JavaScript | apache-2.0 | 4,737 |
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
url:'/main_windows/map/map... | bennpearson/museumwales | Resources/app.js | JavaScript | apache-2.0 | 3,690 |
import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import SkillTagsInput from '../components/SkillTagsInput';
import HeaderText from '../components/HeaderText';
import DetailsEditor from '../components/DetailsEditor';
import SubmitRequestButton from '../components/SubmitRequestBut... | jeojoe/emplist | client/modules/Request/pages/RequestListPage.js | JavaScript | apache-2.0 | 11,111 |
/*
* Copyright © 2016 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | caskdata/cdap | cdap-ui/app/cdap/components/Card/index.js | JavaScript | apache-2.0 | 2,937 |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | stdlib-js/www | public/docs/api/latest/@stdlib/array/to-iterator-right/benchmark_bundle.js | JavaScript | apache-2.0 | 761,009 |
/**
* @todo Complete the test
* This example is not perfect.
* Test should check if MomentJS have been called
*/
describe('directive navbar', function() {
let vm;
let element;
let timeInMs;
beforeEach(angular.mock.module('hackathonVideo'));
beforeEach(inject(($compile, $rootScope) => {
const current... | d2chau/git-demo-fizzbuzz | angular-fizz-buzz/src/app/components/navbar/navbar.directive.spec.js | JavaScript | apache-2.0 | 1,053 |
var MMXManager = require("../lib/MMXManager")
, UserManager = require('../lib/UserManager')
, ConfigManager = require('../lib/ConfigManager')
, Helper = require('./Helper')
, orm = require('../lib/orm')
, fs = require('fs')
, sinon = require('sinon')
, mysql = require('mysql')
, magnetId = require('node-uuid')
, _ = re... | magnetsystems/message-console-server | spec/MMXManager-spec.js | JavaScript | apache-2.0 | 44,357 |
#!/usr/bin/env node
process.stdout.write(JSON.stringify(require('../src/setup-store').generateData(), null, 2))
| keremgocen/fun-with-spark | daw-purchases-api/bin/generate-data.js | JavaScript | apache-2.0 | 113 |
/*!
* Datepicker for Bootstrap v1.5.0-dev (https://github.com/eternicode/bootstrap-datepicker)
*
* Copyright 2012 Stefan Petre
* Improvements by Andrew Rowls
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/(function(factory){
if (typeof define === "function" && define.a... | dckesler/bootstrap-datepicker | dist/js/bootstrap-datepicker.js | JavaScript | apache-2.0 | 53,759 |
var fs = require('fs');
require('http').createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
var a = 'world';
res.write('hello', 'utf8', function() {
a = 'blah';
fs.appendFile('callback', '', function() {});
});
res.end(a);
}).listen(7080);... | nginx/unit | test/node/write_callback/app.js | JavaScript | apache-2.0 | 321 |
/**
* Copyright 2020 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... | jmadler/amphtml | extensions/amp-accordion/1.0/accordion.js | JavaScript | apache-2.0 | 12,693 |
var angular = require('angular');
var angularAPP = angular.module('angularAPP');
var Avro4ScalaFactory = function ($rootScope, $http, $location, $q, $log) {
/* Public API */
return {
getScalaFiles: function (apiData) {
$log.warn(apiData);
$http.defaults.useXDomain = true;
var singleLineApiD... | Landoop/schema-registry-ui | src/factories/avro4s-factory.js | JavaScript | apache-2.0 | 2,196 |
/* global Drop */
(function($) {
'use strict';
var SUPPORTS_TOUCH = 'createTouch' in document;
function loadSymbols() {
return $.ajax({
// FIXME: need to grab a base url from somewhere
url: 'https://www.stellar.org/developers/js/javascript-symbols.json',
dataType: 'json'
});
}
fu... | stellar/developers | src/js/codeSymbolLinks.js | JavaScript | apache-2.0 | 6,373 |
// LoginCtrl
ctrls.controller('LoginCtrl', ['$scope', '$state', '$window', function ($scope, $state, $window) {
/* Định nghĩa biến toàn cục */
$scope.data = {};
// Gán giá trị init
/* Định nghĩa phương thức xử lý */
// Xử lý init
$scope.init = function () {
$pc({
ac... | ctsoftvn/cts-w-1509-01 | Src/CTS.W.150901/CTS.W.150901.Web/adm/res/jss/ctrls/login.js | JavaScript | apache-2.0 | 1,362 |
// Helper ---------------------------------------
nfn.ui.model.BugsHelper = Backbone.Model.extend({
defaults: {
showText: false
}
});
nfn.ui.view.BugsHelper = nfn.ui.view.Widget.extend({
className: 'helper',
events: {
'click .example': 'showExample',
'click .toggle': 'toggleTextState'
},
ini... | mbutler/nfn | lib/nfn/ui/bugs/helper.js | JavaScript | apache-2.0 | 5,421 |
const constants = require('../../generators/generator-constants');
const {
TEST_DIR,
CLIENT_MAIN_SRC_DIR,
CLIENT_TEST_SRC_DIR,
SERVER_MAIN_SRC_DIR,
SERVER_MAIN_RES_DIR,
SERVER_TEST_SRC_DIR,
SERVER_TEST_RES_DIR,
DOCKER_DIR,
} = constants;
const expectedFiles = {
entity: {
clientNg2: [
`${CL... | gmarziou/generator-jhipster | test/utils/expected-files.js | JavaScript | apache-2.0 | 51,709 |
"use strict";
const NtlmSession = require('./ntlmSession').NtlmSession;
const ntlmMessages = require('./ntlmMessages');
const Type1Message = ntlmMessages.Type1Message;
const Type2Message = ntlmMessages.Type2Message;
const Type3Message = ntlmMessages.Type3Message;
/// !doc
///
/// # NtlmAuthenticator
/// ```javascript... | Sage-ERP-X3/jsntlm | src/ntlmAuthenticator.js | JavaScript | apache-2.0 | 3,442 |
/**
* Copyright 2017, Google, 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 in... | googlearchive/cloud-functions-emulator | test/unit/supervisor/index.test.js | JavaScript | apache-2.0 | 861 |
// GENERATED CODE -- DO NOT EDIT!
'use strict';
var grpc = require('@grpc/grpc-js');
var rpcevents_pb = require('./rpcevents_pb.js');
var gogoproto_gogo_pb = require('./gogoproto/gogo_pb.js');
var exec_pb = require('./exec_pb.js');
function serialize_exec_StreamEvent(arg) {
if (!(arg instanceof exec_pb.StreamEvent)... | eris-ltd/eris-db | js/proto/rpcevents_grpc_pb.js | JavaScript | apache-2.0 | 3,819 |
/**
* @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/assert/is-biguint64array/test/test.js | JavaScript | apache-2.0 | 2,257 |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | GoogleForCreators/web-stories-wp | packages/stickers/src/technology-advice/whiteFrameCorner.js | JavaScript | apache-2.0 | 1,245 |
(function () {
"use strict";
angular
.module('app')
.config(appConfig);
function appConfig($httpProvider, $stateProvider, $urlRouterProvider, $uibModalProvider, $transitionsProvider) {
$httpProvider.defaults.headers.common['invalid-auth-response'] = 'on';
$httpProvider.defaults.headers.common['C... | ceejatec/ns_server | priv/public/ui/app-classic/app_config.js | JavaScript | apache-2.0 | 4,370 |
var graph = {}
var node, nodeclone, link
var node_generations = {}
var link_generations = {}
var agg_generations = {}
var subgraph_generations = {}
var xscale, yscale
var xprop, yprop
var transition_duration = 500
var y_substrates
var x_substrates
var force
var modes = {
edges: "straight",//"curved", //"straight... | chadstolper/glo | v1/vis_properties.js | JavaScript | apache-2.0 | 1,968 |
import React from "react";
import ReactDom from 'react-dom';
import {connect, Provider} from 'react-redux';
import { pickHeader } from "../isomorphic/pick-header";
const Loading = () => <h1>Loading..</h1>
class ThemerBase extends React.Component {
state = {
component: Loading
}
getHeaderTheme = props => {
... | quintype/madrid | app/client/header-themer.js | JavaScript | apache-2.0 | 898 |
/*
* Copyright 2017-2019 Crown Copyright
*
* 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... | gchq/gaffer-tools | ui/src/main/webapp/app/toolbar/toolbar-component.js | JavaScript | apache-2.0 | 6,785 |
/**
* @author Raghav
*
*/
var User = require("../models").User;
var bcrypt = require('bcrypt-nodejs');
// generating a hash
function generateHash (password) {
return bcrypt.hashSync(password, bcrypt.genSaltSync(8), null);
};
// checking if password is valid
function validPassword (submitted_password, db... | Graghav/Blue-cross-of-India | WEB-APP/routes/userController.js | JavaScript | apache-2.0 | 1,726 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | ImAliveApp/PirateCharacter | PirateCharacter/Pirate/MiniGame/MiniGame.js | JavaScript | apache-2.0 | 13,323 |
let bondDstrMainComponent = {
restrict: 'E',
bindings: {
tabFlag:'=?',
exportExcelUrl:'<?'
},
templateUrl: './bond-dstr-main.html',
controller: BondDstrMainController
};
| YestoryFornever/es6-webpack-angular1 | client/app/components/home/subs/bond-dstr-main/bond-dstr-main.component.js | JavaScript | apache-2.0 | 179 |
(function(){
var app = angular.module('SportSceduler', []);
app.controller('UserCtrl', function(){
this.user = user;
});
var user = {
userId: 0,
firstName: '',
lastName: '',
isSignedIn: false,
}
})();
| Jeff-Stapleton/SportScheduling | old code/sign in page/app.js | JavaScript | apache-2.0 | 224 |
const test = require('ava')
const goshawkdb = require('../..')
const {setupThenTransactionTest, firstRoot} = require('../helpers/utils')
test("Capabilities are enforced.",
setupThenTransactionTest(
(t, connection, txn) => {
const root = firstRoot(txn)
const o1 = txn.create(Buffer.from("Hello World"), [])
t... | kybernetikos/goshawkjs | test/system/capability.test.js | JavaScript | apache-2.0 | 1,212 |
var activeScenes=[];
activeScenes[0] = {"context" : new AudioContext(), "scene" : "none"};
activeScenes[1] = {"context" : new AudioContext(), "scene" : "none"};
activeScenes[2] = {"context" : new AudioContext(), "scene" : "none"};
activeScenes[3] = {"context" : new AudioContext(), "scene" : "none"};
activeScenes[... | softrope/softrope-web | app.js | JavaScript | apache-2.0 | 21,336 |
function order(x, y) {
if (x > y) {
let tmp = x;
x = y;
y = tmp;
}
console.log(tmp === x);
// ReferenceError:
// tmp is not defined
return [x, y];
}
| noomorph/showing-the-es6 | samples/concepts/variables/let.js | JavaScript | artistic-2.0 | 206 |
Grailbird.data.tweets_2010_09 =
[ {
"source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ {
"name" : "Sean Bleier",
"screen_name" : "sebleier",
"indices" : [ 106, 115 ],
"id_str" : "5840842",
... | icco/tweets | data/js/tweets/2010_09.js | JavaScript | artistic-2.0 | 72,848 |
'use strict';
// http://codepen.io/brunoscopelliti/pen/ECyka
angular.module('civApp').directive('match', [function () {
return {
require: 'ngModel',
link: function (scope, elem, attrs, ctrl) {
scope.$watch('[' + attrs.ngModel + ', ' + attrs.match + ']', function (value) {
ctrl.$setValidity('ma... | cash1981/civilization-boardgame-web | app/scripts/directives/match.js | JavaScript | artistic-2.0 | 383 |
/*****************************************************************************\
Simple ensure authenticated middleware, which is responsible for validating
that a user is authenticated, else forwards to the login page.
\*****************************************************************************/
module.exports = func... | sabhiram/nodejs-scaffolding | app/middleware/ensure_authenticated.js | JavaScript | bsd-2-clause | 481 |
import express from 'express';
import graphQLHTTP from 'express-graphql';
import renderOnServer from './renderOnServer'
import {schema} from './data/schema';
const APP_PORT = 8080;
var app = express();
// Expose a GraphQL endpoint
app.use('/graphql', graphQLHTTP({schema, pretty: true}));
// Serve JavaScript
app.get... | AndriyShepitsen/react-relay-cbi | examples/todo/src/server.js | JavaScript | bsd-2-clause | 656 |
/**
* (description)
*
* @author yourname
*/
export default class StructureController {
constructor($state) {
'ngInject'
this.$state = $state;
this.name = 'structure';
}
} | ffan-fe/fancyui | example/app/components/structure/structure.controller.js | JavaScript | bsd-2-clause | 192 |
(function() {
var c2 = construct2api;
function rawScore() {
return c2.globalVar('game_points').data;
}
var gameOver = false;
var endgameScore = 0;
window.muniverse = {
init: function() {
return init4j().then(function() {
faketime.pause();
['mousedown', 'mouseup'].forEach((ev... | unixpickle/muniverse | games/injections/TRexRunner-v0.js | JavaScript | bsd-2-clause | 1,519 |
'use strict';
describe('Controller: ZoomCtrl', function () {
// load the controller's module
beforeEach(module('ausEnvApp'));
var ZoomCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
ZoomCtrl = $control... | ANU-WALD/aus-env | test/spec/controllers/zoom.js | JavaScript | bsd-2-clause | 418 |
module.exports = {
name: "<Dealer>",
step: function(cards, dealerCards, table, actions) {
if(hand.value >= 16) {
return actions.stay;
} else {
return actions.hit;
}
},
lose: function(amount) {
},
win: function(amount) {
}
}; | ameily/brown-jack | dealer.js | JavaScript | bsd-2-clause | 283 |
(function (Planner, HashMap, undefined) {
'use strict';
// Defines Planner.js instance
// ---------------------------
Planner.Instance = function (element, options) {
this.element = element;
this.options = options;
// Initialize HashMaps to store planner Card status
this.mapCard = new HashMap... | evonove/planner.js | client/js/instance.js | JavaScript | bsd-2-clause | 1,403 |
const path = require('path');
const webpack = require('webpack');
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
const { VueLoaderPlugin } = require('vue-loader');
const execSync = require('child_process').execSync;
let commitShaId;
try {
commitShaId = '#' + execSync('git rev-... | psi-4ward/psitransfer | app/webpack.config.js | JavaScript | bsd-2-clause | 2,813 |
var expect = require('chai').expect,
path = require('path'),
EventEmitter = require('events').EventEmitter,
ScriptManager = require('../lib/ScriptManager').ScriptManager;
describe('ScriptManager', function() {
var manager;
var realMainAppScript = 'folder' + path.sep + 'App.js';
var mainAppScript = 'f... | vdininski/node-inspector | test/ScriptManager.js | JavaScript | bsd-2-clause | 2,051 |