commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
e1e598a7b63725990bd12f422ff142d7889442fe | Update config.js | src/config.js | src/config.js | /**
* Bitcoin Price Twitter Bot
* config.js
*
* Copyright Ansel Lindner <ansellindner@blockchainio.com>
* MIT License
*/
'use strict';
// These settings are for account <your account name>
module.exports = {
CONSUMER_KEY: 'CAeV9ddvrBiSYgQlYwpUcolMx',
CONSUMER_SECRET: 'tafz90B68unIc2IQY4L5MAWZqxOLeFoUxlp... | JavaScript | 0.000002 | @@ -235,249 +235,79 @@
Y: '
-CAeV9ddvrBiSYgQlYwpUcolMx',%0A%09CONSUMER_SECRET: 'tafz90B68unIc2IQY4L5MAWZqxOLeFoUxlpUUDZkX2Y7D2AsfF',%0A%09ACCESS_TOKEN_KEY: '712142165271445504-LE9Jt2b9HUEcizvdq2rutFpIve8GnxN',%0A%09ACCESS_TOKEN_SECRET: 'TjfqrLCv24X1f8TkLPnSTJGKoInwqZdkrGBtUhSoZ8pGw
+',%0A%09CONSUMER_SECRET: '',%0A%09A... |
b7c57b4ad3739a37d8535231578c78c1582402ec | Use json by default for js library | rubyzome/api/rubyzome.js | rubyzome/api/rubyzome.js | // general action
// f_ok(data, textStatus, XMLHttpRequest)
// f_err(XMLHttpRequest,textStatus, errorThrown)
function general_action( type, url, params, f_ok, f_err ) {
$.ajax({
type: type,
url: url,
data: params,
success: f_ok,
error: f_err
});
}
function create... | JavaScript | 0.000001 | @@ -213,16 +213,24 @@
rl: url
++'.json'
,%0A
|
4ab4b71c57b68d7bd9738b9cb01aec2302e88a92 | Revert API prefix change | config/blueprints.js | config/blueprints.js | /**
* Blueprint API Configuration
* (sails.config.blueprints)
*
* These settings are for the global configuration of blueprint routes and
* request options (which impact the behavior of blueprint actions).
*
* You may also override any of these settings on a per-controller basis
* by defining a '_config' key in... | JavaScript | 0 | @@ -6051,19 +6051,16 @@
****/%0A%0A
- //
prefix:
@@ -6061,16 +6061,23 @@
refix: '
+/api/v1
',%0A%0A /*
|
c2574b8d6347f09b5f315308be9f30727dcb0991 | remove a trailing slash from a require | src/dropin.js | src/dropin.js | 'use strict';
var assign = require('./lib/assign').assign;
var MainView = require('./views/main-view');
var constants = require('./constants');
var DropinModel = require('./dropin-model');
var EventEmitter = require('./lib/event-emitter');
var isGuestCheckout = require('./lib/is-guest-checkout');
var mainHTML = requir... | JavaScript | 0.000001 | @@ -373,17 +373,16 @@
slations
-/
');%0Avar
|
fccf5f5222458f39e86c216eb3076747438108f5 | Add finally to services | dev/app/services/Sections/sections.service.js | dev/app/services/Sections/sections.service.js | sections.$inject = ['$http'];
function sections($http) {
var url = 'http://fiasps.unitec.edu:' + PORT + '/api/Sections';
var service = {
getSections: getSections,
postSection: postSection,
deleteSection: deleteSection,
getStudents: getStudents,
addStudent: addStudent,
... | JavaScript | 0 | @@ -17,15 +17,17 @@
= %5B
+
'$http'
+
%5D;%0A%0A
@@ -803,18 +803,16 @@
rojectId
-
%0A %7D;%0A
@@ -865,39 +865,28 @@
(success
-Callback, errorCallback
+, error, fin
) %7B%0A
@@ -925,32 +925,24 @@
then(success
-Callback
)%0A
@@ -951,32 +951,50 @@
.catch(error
-Callback
+)%0A .fi... |
b77b2aea7dda5415ff91602db7a881c0b100fee7 | Fix colour inputs being black in Safari TP | src/editor.js | src/editor.js | var origin = window.opener.location.origin;
if (origin.substring(0, 4) !== 'http') {
origin = null;
} else {
document.title += ' - ' + origin;
}
var VARIABLES = Object.create(null);
window.opener.addEventListener('beforeunload', function(evt) {
window.close();
});
window.addEventListener('load', functio... | JavaScript | 0.000005 | @@ -3049,16 +3049,309 @@
value);
+%0A%0A // Workaround for weird Safari color input bug:%0A // https://bugs.webkit.org/show_bug.cgi?id=166930%0A if (attr === 'value') %7B%0A el.value = '#000000';%0A el.value = value... |
7dcf8432311ba0178c290c2f3f5773e0467f5b2c | improve wording: “closing body tag” | packages/@uppy/core/src/Plugin.js | packages/@uppy/core/src/Plugin.js | const preact = require('preact')
const findDOMElement = require('@uppy/utils/lib/findDOMElement')
/**
* Defer a frequent call to the microtask queue.
*/
function debounce (fn) {
let calling = null
let latestArgs = null
return (...args) => {
latestArgs = args
if (!calling) {
calling = Promise.reso... | JavaScript | 0.000391 | @@ -4021,15 +4021,27 @@
the
+closing
%3C/body%3E
+ tag
(se
|
dc91fee73feac0ee72218a44c2cdf0df1b1c195e | Remove version constraints from packages/accounts-base/package.js. | packages/accounts-base/package.js | packages/accounts-base/package.js | Package.describe({
summary: "A user account system",
version: "1.2.11"
});
Package.onUse(function (api) {
api.use('underscore@1.0.9', ['client', 'server']);
api.use('ecmascript@0.5.7', ['client', 'server']);
api.use('ddp-rate-limiter@1.0.5');
api.use('localstorage@1.0.11', 'client');
api.use('tracker@1.1... | JavaScript | 0 | @@ -125,22 +125,16 @@
derscore
-@1.0.9
', %5B'cli
@@ -176,14 +176,8 @@
ript
-@0.5.7
', %5B
@@ -229,14 +229,8 @@
iter
-@1.0.5
');%0A
@@ -256,15 +256,8 @@
rage
-@1.0.11
', '
@@ -288,14 +288,8 @@
cker
-@1.1.0
', '
@@ -318,14 +318,8 @@
heck
-@1.2.3
', '
@@ -345,23 +345,16 @@
('random
-@1.0.10
', %5B'cli
@@ -3... |
70e36c709faf37bcc48c463e031969abdaf6d097 | allow destructuring in imports | src/esnext.js | src/esnext.js | const config = require('./')
config.env.es6 = true
config.parserOptions = {
ecmaVersion: 6,
sourceType: 'module'
}
config.ecmaFeatures = {
arrowFunctions: true,
binaryLiterals: false,
blockBindings: true,
classes: true,
defaultParams: true,
destructuring: true,
experimentalObjectRestSpread: true,
... | JavaScript | 0.000001 | @@ -1499,25 +1499,25 @@
-rename'%5D =
-2
+0
%0Aconfig.rule
|
ae251a637c080f3317ffd8a98962d9c0aa6e573d | bump version | src/extend.js | src/extend.js | /*
* gextend
* https://github.com/goliatone/gextend
* Created with gbase.
* Copyright (c) 2014 goliatone
* Licensed under the MIT license.
*/
/* jshint strict: false, plusplus: true */
/*global define: false, require: false, module: false, exports: false */
(function(root, name, deps, factory) {
"use strict";... | JavaScript | 0 | @@ -3844,17 +3844,17 @@
ON = '0.
-4
+5
.1';%0A%0A
|
66004231ccfe5e240ee428a63c7c2539bc257d76 | Change shortkey to execute query for CmdOrCtrl+Enter | src/browser/app-menu.js | src/browser/app-menu.js | import Menu from 'menu';
export function attachMenuToWindow(app, mainWindow) {
const template = buildTemplate(app, mainWindow);
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
}
function buildTemplate(app, mainWindow) {
return [
{
label: 'Sqlectron',
submenu: [
... | JavaScript | 0 | @@ -1261,16 +1261,20 @@
OrCtrl+E
+nter
',%0A
|
b26f723e5683a387a5a1bfc9c6c7b31ca97107ca | make linter happy | src/insert.js | src/insert.js | if (document.getElementById('dataslayer_script') == null){
var insertScript =
'(function(){/* jQuery v1.9.1 (c) 2005, 2012 jQuery Foundation, Inc. jquery.org/license.*/'+
'var g=/\\[object (Boolean|Number|String|Function|Array|Date|RegExp)\\]/;function h(a){return null==a?String(a):(a=g.exec(Object.prototype.toString.... | JavaScript | 0.000001 | @@ -40,24 +40,25 @@
_script') ==
+=
null)%7B%0Avar
|
43215aaaee05b368be0750cf923395c182ab8c21 | Add sortablejs to vendor.js | shuup/admin/static_src/vendor/vendor.js | shuup/admin/static_src/vendor/vendor.js | /**
* This file is part of Shuup.
*
* Copyright (c) 2012-2018, Shuup Inc. All rights reserved.
*
* This source code is licensed under the OSL-3.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
//-- jQuery
var jquery = require("jquery");
window.$ = window.jQuery = jquery;
cons... | JavaScript | 0.000002 | @@ -743,30 +743,8 @@
');%0A
-require('sortablejs');
%0Areq
|
0fe464501c5285fe8db6164d2ac0efbf0cdb03cb | Fix stored configuration parsing. Close #35. | src/js/app.js | src/js/app.js | /*global $, app, me, client*/
"use strict";
var _ = require('underscore');
var Backbone = require('backbone');
Backbone.$ = $;
var async = require('async');
var StanzaIO = require('stanza.io');
var AppState = require('./models/state');
var MeModel = require('./models/me');
var MainView = require('./views/main');
var ... | JavaScript | 0 | @@ -733,16 +733,613 @@
ion () %7B
+%0A function parseConfig(json) %7B%0A var config = JSON.parse(json);%0A var credentials = config.credentials;%0A if (!credentials) %7B%0A return config;%0A %7D%0A%0A for (var property in credentials) %7B%0A ... |
9d0c9a8800a069f45d1ba6ba79bd4496310ad6f1 | Resolve with an instance of Kinvey.User or null for Kinvey.initialize() | src/kinvey.js | src/kinvey.js | import { Promise } from 'es6-promise';
import url from 'url';
import {
Kinvey as CoreKinvey,
isDefined,
KinveyError,
CacheRequest,
RequestMethod
} from 'kinvey-js-sdk/dist/export';
import { Client } from './client';
const USERS_NAMESPACE = 'user';
const ACTIVE_USER_COLLECTION_NAME = 'kinvey_active_user';
ex... | JavaScript | 0 | @@ -147,16 +147,24 @@
stMethod
+,%0A User
%0A%7D from
@@ -453,22 +453,20 @@
eUser =
-client
+User
.getActi
@@ -472,16 +472,22 @@
iveUser(
+client
);%0A%0A
@@ -1107,24 +1107,139 @@
iveUser)) %7B%0A
+ if (isDefined(activeUser.data)) %7B%0A return client.setActiveUser(activeUser.data);%0A... |
cffd1120f4962ae35a1e0b1f6e52ef01dfc3958f | Make routing table editable | src/layout.js | src/layout.js | /**
* This is used to control what items are rendeder and how they are laid out
*
* Copyright 2015 Ethan Smith
*/
var CategorizedController = require('./controller/CategorizedController'),
DifferenceController = require('./controller/DifferenceController');
var layout = [
{
'heading': 'Income Totals'... | JavaScript | 0.000001 | @@ -591,16 +591,43 @@
': false
+,%0A 'editable': true
%0A %7D
|
03bf385e32e558911b55988de169e8b939012a01 | improve angular.Module#run docs | src/loader.js | src/loader.js | 'use strict';
/**
* @ngdoc interface
* @name angular.Module
* @description
*
* Interface for configuring angular {@link angular.module modules}.
*/
function setupModuleLoader(window) {
function ensure(obj, name, factory) {
return obj[name] || (obj[name] = factory());
}
return ensure(ensure(window, '... | JavaScript | 0.000015 | @@ -7795,32 +7795,30 @@
work which
-needs to
+should
be performe
@@ -7837,20 +7837,23 @@
njector
-with
+is done
%0A
@@ -7862,51 +7862,27 @@
*
-with the current module is finished loading
+loading all modules
.%0A
|
2ed3136fa8c5cc147344a2f821a22591c5e63ce2 | add parser for links | src/locale.js | src/locale.js | import events from './store/module/events'
import { updateURLPrefix } from './router'
import { warn } from './utils'
/**
* To better manage errors and typos, every errors will be logged in the console
* with the current translated value
*/
const warnPropertyError = (errors, context) => {
if (errors.length > 0) {
... | JavaScript | 0 | @@ -821,21 +821,22 @@
matched
-Param
+Curlie
s = stri
@@ -925,21 +925,22 @@
!matched
-Param
+Curlie
s) %7B%0A
@@ -965,13 +965,14 @@
ched
-Param
+Curlie
s.fo
@@ -1096,16 +1096,349 @@
eys%5Bi%5D%0A%0A
+ if (prop === '$link') %7B%0A if (!value.length) %7B%0A string = string.replace(match, prop)%0... |
e159e3c345366630147f2b16a6dc66d4d545695c | fix dist file | packages/codemirror-console-ui/webpack.config.js | packages/codemirror-console-ui/webpack.config.js | const path = require("path");
module.exports = {
entry: {
"mirror-console-component": "./components/mirror-console-component.js"
},
devtool: process.env.WEBPACK_DEVTOOL || "source-map",
output: {
path: path.join(__dirname, "dist"),
filename: "[name].js"
},
module: {
... | JavaScript | 0.000004 | @@ -282,24 +282,84 @@
%22%5Bname%5D.js%22
+,%0A library: 'ConsoleUI',%0A libraryTarget: 'umd'
%0A %7D,%0A
|
7d0b1cabd8a77fbdfd09b634dd093d2d1be2c775 | fix timeline head movement | packages/element/timeline/HeadTimelineElement.js | packages/element/timeline/HeadTimelineElement.js | import Ticker from '../core/util/Ticker.js';
const SIDE_MOVEMENT_SPEED = .2;
const PADDING_RATIO = .25;
class HeadTimelineElement extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' }).innerHTML = `
<style>
:host {
display: block;
position: rela... | JavaScript | 0.000001 | @@ -1433,35 +1433,16 @@
padding
- && this.scrollLeft
) %7B%0A
@@ -2774,13 +2774,19 @@
-let x
+const edgeX
= (
@@ -2961,17 +2961,21 @@
if (
-x
+edgeX
%3E right
&&
@@ -2974,61 +2974,8 @@
ight
- && (this._width * (this.zoom - 1) - this.scrollLeft)
) %7B%0A
@@ -3000,17 +3000,21 @@
eft += (
-x
+edgeX... |
3b6f6a8114028b11cfa30e6e5544caa5c4d8d290 | Refactor callback validation | jquery.enumerable.js | jquery.enumerable.js | (function ( $ ) {
$.collect = function (enumerable, callback) {
if (!jQuery.isFunction(callback))
throw("callback needs to be a function, it was: " + callback);
var result = [];
$.each(enumerable, function (index) {
result.push(callback.call(this, index));
});
return $(result);
}
... | JavaScript | 0 | @@ -67,100 +67,25 @@
-if (!jQuery.isFunction(callback))%0A throw(%22callback needs to be a function, it was: %22 +
+validateCallback(
call
@@ -387,100 +387,25 @@
-if (!jQuery.isFunction(callback))%0A throw(%22callback needs to be a function, it was: %22 +
+validateCallback(
call
@@ -632,32 +63... |
221fdef57777b94d400a280cdf4aa77f9ba67922 | fix rethink path | src/master.js | src/master.js | const fs = Promise.promisifyAll(require("fs"));
let port = 7500;
async function init() {
await (require("./misc/rethink")).init();
let website = cluster.fork();
website.once("online", () => website.send({ type: "startup", processType: "website", port }));
port++;
let apiVersions = await fs.readdirAsync(`${__dir... | JavaScript | 0.000002 | @@ -103,23 +103,29 @@
ire(
-%22./misc
+%60$%7B__dirname%7D
/rethink
%22)).
@@ -120,17 +120,17 @@
/rethink
-%22
+%60
)).init(
|
9b477f5311aa42bcefa6973280fd6754f5acb1cd | define used variable in test | addons/web/static/tests/tools/debug_manager_tests.js | addons/web/static/tests/tools/debug_manager_tests.js | odoo.define('web.debugManagerTests', function (require) {
"use strict";
var testUtils = require('web.test_utils');
var createDebugManager = testUtils.createDebugManager;
QUnit.module('DebugManager', {}, function () {
QUnit.test("list: edit view menu item", function (assert) {
assert.expect(3);
... | JavaScript | 0 | @@ -108,16 +108,56 @@
utils');
+%0Avar FormView = require('web.FormView');
%0A%0Avar cr
|
6bd316a798e90b4124df7fb4f323600ba98e7dd0 | Add apostrophe to email regex | jquery.formValidation.js | jquery.formValidation.js | /**
* FormValidation v1.0
* Website - https://github.com/dmetri333/FormValidation
* Licensed under Apache License (https://github.com/dmetri333/FormValidation/blob/master/LICENSE)
*/
(function($) {
var FormValidation = function(element, options) {
this.options = options;
this.$element = $(element);
this... | JavaScript | 0.999161 | @@ -897,16 +897,17 @@
0-9_.%5C-+
+'
%5D)+@(%5Ba-
|
80c14e83a6d8956112022dc8e99a13fb44ce60b9 | use validators for NumberProperty options, https://github.com/phetsims/axon/issues/253 | js/NumberProperty.js | js/NumberProperty.js | // Copyright 2016-2019, University of Colorado Boulder
/**
* Property whose value must be a number.
*
* @author Chris Malley (PixelZoom, Inc.)
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
'use strict';
// modules
const axon = require( 'AXON/axon' );
const NumberPrope... | JavaScript | 0 | @@ -439,24 +439,71 @@
OT/Range' );
+%0A const validate = require( 'AXON/validate' );
%0A%0A // const
@@ -572,16 +572,97 @@
R_TYPES;
+%0A const VALID_INTEGER = %7B valueType: 'number', isValidValue: v =%3E v %25 1 === 0 %7D;
%0A%0A clas
@@ -940,13 +940,14 @@
LID_
-VALUE
+NUMBER
_TYP
@@ -2246,24 +2246,25 @@
ue... |
5193ac4cb8374797ae6ca18a212859777d8a8660 | Update PatternPlanets.js | js/PatternPlanets.js | js/PatternPlanets.js | /*******************************************************************************
*
* Copyright 2012 Bess Siegal
*
* 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.ap... | JavaScript | 0 | @@ -3020,15 +3020,16 @@
nd('
-yaahooo
+ppHooray
.wav
@@ -3108,12 +3108,14 @@
d('p
-luck
+pValid
.wav
@@ -3195,13 +3195,14 @@
nd('
-thunk
+ppMiss
.wav
@@ -3285,14 +3285,17 @@
nd('
-boing2
+ppInvalid
.wav
|
bb3ed6c6c33586a32a8d5381ae637adf50534898 | Remove stray console.log | js/actionCreators.js | js/actionCreators.js | import { parser } from "winamp-eqf";
import MyFile from "./myFile";
import skinParser from "./skinParser";
import { BANDS } from "./constants";
import { clamp } from "./utils";
import {
CLOSE_WINAMP,
LOAD_AUDIO_FILE,
LOAD_AUDIO_URL,
OPEN_FILE_DIALOG,
SEEK_TO_PERCENT_COMPLETE,
SET_BALANCE,
SET_BAND_VALUE,... | JavaScript | 0.000002 | @@ -4701,31 +4701,8 @@
%3E %7B%0A
- console.log(%22ho%22);%0A
|
0354c844a6ab45fc60465aebc30fb84eb6970997 | Update ProductsGridHelper.js | js/ProductsGridHelper.js | js/ProductsGridHelper.js | // Helper for the products grid used at the SalesOrder and Opportunity levels
define(['dojo/_base/declare', 'dojo/aspect'], function (declare, aspect) {
var Helper = declare([], {
grid: null,
constructor: function(grid) {
this.grid = grid;
this.setupDefaultProgram();
... | JavaScript | 0 | @@ -506,32 +506,67 @@
: function() %7B%0D%0A
+ var grid = this.grid;%0D%0A
var
@@ -824,32 +824,206 @@
%0A %7D%0D%0A
+ if(grid.mode == 'insert') %7B%0D%0A // if we don't do that, the grid will show duplicated rows%0D%0A grid.store.clearCache(... |
c96d70a9e9abd526d781692f991dc4dad001cef8 | Remove extra /> | website/components/example.js | website/components/example.js | /*
* Copyright (c) 2016, Globo.com (https://github.com/globocom)
*
* License: MIT
*/
import React from "react";
import getMuiTheme from "material-ui/styles/getMuiTheme";
import {grey300, grey900, white, indigo500} from "material-ui/styles/colors";
import {MegadraftEditor} from "../../src/Megadraft";
import {edit... | JavaScript | 0 | @@ -2050,21 +2050,8 @@
%7D/%3E%0A
- /%3E%0A
|
af18c54c96c94ef8fa6a65764871104830255d7d | Update wechat sharing | js/WeiXinJsSdkWrapper.js | js/WeiXinJsSdkWrapper.js |
var WeiXinJsSdkWrapper = (function($, Hashes, wx, zHelper, ParseJsGlobalCache){
//TODO(zzn): to be replaced by a real secret after development.
var CONST_APPID = "wx4bf3130f55a3352d";
var CONST_APPSECRET = "d15f5121f0047d288f1ba81dd0fe7cca";
var CACHE_DB_NAME = "AuthCache";
var ACCESS_TOKEN_CACHE_K... | JavaScript | 0 | @@ -4507,16 +4507,65 @@
ature);%0A
+ alert(%22XXX before wx.config ready%22);%0A
@@ -5079,32 +5079,71 @@
%7D);%0A
+ alert(%22XXX before ready%22);%0A
wx.r
@@ -5235,16 +5235,20 @@
alert(%22
+XXX
wx.ready
@@ -5278,16 +5278,22 @@
rt(res);
+ //XXX
%0A
|
0c1b62fef00487e1d115adc34021632d77910d9f | Use divs to avoid inheriting paragraph styles. | assets/js/components/adminbar/AdminBarZeroData.js | assets/js/components/adminbar/AdminBarZeroData.js | /**
* Admin Bar Zero Data component.
*
* Site Kit by Google, 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... | JavaScript | 0 | @@ -771,25 +771,27 @@
%09%09%3Cdiv%3E%0A%09%09%09%3C
-p
+div
className=%22
@@ -922,16 +922,20 @@
%09%09%3C/
-p
+div
%3E%0A%09%09%09%3C
-p
+div
cla
@@ -1154,17 +1154,19 @@
%7D%0A%09%09%09%3C/
-p
+div
%3E%0A%09%09%3C/di
|
935360041f5a28ff98f94a0b51cc58d65b3bbb60 | return methods variable after fancyTimlines initial function to make intern methods callable | js/fancy-timeline.js | js/fancy-timeline.js | /*!
* Fancy-TimeLine v.1.0
*
* Copyright (C) 2012 Juan Manuel Aguero (http://juanmaaguero.com.ar/sobre-mi)
*
* This file is part of Fancy-TimeLine.
*
* Fancy-TimeLine is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the... | JavaScript | 0 | @@ -8035,18 +8035,42 @@
+
%0D%0A
-%7D;
+ return methods;%0D%0A %7D;
%0D%0A%7D)
|
880a60fba8e959417b830917df7667764b31197c | test catch up | assets/src/dashboard/app/reducer/test/settings.js | assets/src/dashboard/app/reducer/test/settings.js | /*
* Copyright 2020 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 ... | JavaScript | 0 | @@ -1096,32 +1096,53 @@
,%0A payload:
+ %7B googleAnalyticsId:
'fakeId12345',%0A
@@ -1131,32 +1131,34 @@
d: 'fakeId12345'
+ %7D
,%0A %7D);%0A ex
@@ -1588,35 +1588,29 @@
to find
-google analytics ID
+settings data
',%0A
@@ -1858,35 +1858,29 @@
to find
-google analytics ID
+settings data
',%0A ... |
bf5c07b8c5bb2052c61aa2871d22be193dc7ac3d | Allow passing a complete Action for the buttons | js/foam/u2/Dialog.js | js/foam/u2/Dialog.js | /**
* @license
* Copyright 2016 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... | JavaScript | 0.000001 | @@ -1265,17 +1265,16 @@
el%5D pair
-.
' +%0A
@@ -1281,16 +1281,30 @@
'
+or an Action.
These wi
@@ -1349,22 +1349,8 @@
der
-as MD buttons
' +%0A
@@ -1360,16 +1360,30 @@
'
+as MD buttons
at the b
@@ -1420,16 +1420,31 @@
lt is a
+' +%0A '
single %22
@@ -1454,31 +1454,16 @@
butto... |
a6373d7136199b166ff5f8fbec625663d4a2866d | Add support for Base serializer | addon/serializers/base.js | addon/serializers/base.js | import Ember from 'ember';
import DS from 'ember-data';
/**
* Base serializer class.
*
* @module ember-flexberry-data
* @namespace Serializer
* @class Base
*/
export default DS.RESTSerializer.extend({
/**
* Flag: indicates whether to use new {@link http://jsonapi.org|JSON API} serialization.
*/
isNewSe... | JavaScript | 0 | @@ -2648,16 +2648,327 @@
rue */%0A%0A
+ /**%0A Return model name for relationship.%0A%0A @method modelNameFromRelationshipType%0A @param %7BString%7D relationshipType Type of relationship (%60relationship.type%60).%0A */%0A modelNameFromRelationshipType(relationshipType) %7B%0A return Ember.String.capi... |
2ed16d82bfeb0713b7d4c1fd7ac0d9d6127f8258 | Fix social image | website/src/components/seo.js | website/src/components/seo.js | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
import socialImageDefault from '../images/social_default.jpg'
import socialImageApi from '../images/social_api.jpg'
import socialImageUniverse from '../images/social_universe.jpg... | JavaScript | 0.999997 | @@ -1240,16 +1240,39 @@
lImage =
+ siteMetadata.siteUrl +
getImag
@@ -3724,16 +3724,40 @@
slogan%0A
+ siteUrl%0A
|
bc90b363aa099ae28f8421333a094fee011dfacd | fix #62 | js/meter/list-app.js | js/meter/list-app.js | import $$ from 'slot';
import virtualDom from 'virtual-dom';
import $$searchBox from '../widget/search-box';
import $$queryObj from '../query-obj';
import page from 'page';
import meterStore from '../store/meter-store';
import $$paginator from '../widget/paginator';
import $$tableHints from '../widget/table-hints';
imp... | JavaScript | 0.000001 | @@ -2097,42 +2097,11 @@
type
- %7C%7C $$meterTypes.val().ELECTRIC
),%0A
+
$$
@@ -2162,16 +2162,72 @@
return
+ R.concat(%5B%7B%0A value: '',%0A text: '%E4%B8%8D%E9%99%90%E5%88%86%E7%B1%BB'%0A %7D%5D,
R.value
@@ -2239,16 +2239,17 @@
erTypes)
+)
;%0A %7D),%0A
|
a5a7478c10f309e671375027fed463ff9f0d5a1a | add assertion messages to Fraction | js/model/Fraction.js | js/model/Fraction.js | // Copyright 2014-2015, University of Colorado Boulder
/**
* Data structure for a fraction (possibly improper).
*
* NOTE: The common version of this class in the PhET Java code base has a number of additional methods. These methods
* should be ported into this file as needed. Please see edu.colorado.phet.fractio... | JavaScript | 0.000004 | @@ -898,51 +898,159 @@
or )
- ) && assert( Util.isInteger( denominator )
+, 'numerator must be an integer: ' + numerator );%0A assert && assert( Util.isInteger( denominator ), 'denominator must be an integer: ' + denominator
);%0A
|
2aa95d9c3995b8315ac0a0a2b43ceeff1c4dae41 | Update eloquent.js | week-7/eloqent_js/eloquent.js | week-7/eloqent_js/eloquent.js | // Eloquent JavaScript
// Run this file in your terminal using `node my_solution.js`. Make sure it works before moving on!
// Program Structure
// Write your own variable and do something to it.
var name = "Nicolette"
console.log(name)
name = "Alexandria"
console.log(name)
//user input
// var favoriteFood = prompt... | JavaScript | 0.000001 | @@ -578,16 +578,18 @@
+= %22*%22)
+ %7B
%0A conso
@@ -601,16 +601,19 @@
g(star);
+%0A%7D;
%0A%0Afuncti
|
8b2346cf466e7347f5541fa47bc9f0f4965a388b | Insert inline code shortcut for editor | ghost/admin/utils/editor-shortcuts.js | ghost/admin/utils/editor-shortcuts.js | var shortcuts = {},
ctrlOrCmd = navigator.userAgent.indexOf('Mac') !== -1 ? 'command' : 'ctrl';
//
//General editor shortcuts
//
shortcuts[ctrlOrCmd + '+s'] = 'save';
shortcuts[ctrlOrCmd + '+alt+p'] = 'publish';
shortcuts['alt+shift+z'] = 'toggleZenMode';
//
//CodeMirror Markdown Shortcuts
//
//Text
shortcuts['c... | JavaScript | 0 | @@ -832,17 +832,16 @@
se'%7D%7D;%0A%0A
-%0A
//Headin
@@ -1793,24 +1793,117 @@
: 'image'%7D%7D;
+%0Ashortcuts%5BctrlOrCmd + '+shift+k'%5D = %7Baction: 'codeMirrorShortcut', options: %7Btype: 'code'%7D%7D;
%0A%0A//Currentl
|
08f02743d32abf6eaaed84b542b9c4aedd389e31 | add reflection | week-7/javascript_olympics.js | week-7/javascript_olympics.js | // JavaScript Olympics
// I paired [by myself, with:] on this challenge.
// This challenge took me [#] hours.
// Warm Up
// Bulk Up
'use strict';
var athleteOne = {
name : "Shaun",
event : "Location of event"
}
var athleteTwo = {
name: "Sweet",
event: "Location of event"
}
var athleteArray = [athleteOne, a... | JavaScript | 0.000006 | @@ -1403,12 +1403,674 @@
/ Reflection
+%0A// %E2%80%A2%09What JavaScript knowledge did you solidify in this challenge?%0A// Objects I think.%0A// %E2%80%A2%09What are constructor functions?%0A// Constructor functions are functions that take in the data you need in order to build new instances of an object. They const... |
a7b83468bf18afc6d074757e2df40f9d89a948cf | Update speech_recognition.js | js/speech_recognition.js | js/speech_recognition.js | var final_transcript = '';
var recognizing = false;
var recognition;
// reply processing
var two_line = /\n\n/g;
var one_line = /\n/g;
function linebreak(s) {
return s.replace(two_line, '<p></p>').replace(one_line, '<br>');
}
var first_char = /\S/;
function capitalize(s) {
return s.replace(first_char... | JavaScript | 0.000005 | @@ -1072,24 +1072,19 @@
#report_
-response
+img
%22).css(%22
@@ -1131,24 +1131,19 @@
#report_
-response
+img
').anima
|
a458cf878dd4f759ab4cfd60c76111b7ba022000 | fix undefined editModal when clicking view listing | js/utils/modalManager.js | js/utils/modalManager.js | import app from '../app';
import { getOpenModals } from '../views/modals/BaseModal';
import Listing from '../models/listing/Listing';
import About from '../views/modals/about/About';
import EditListing from '../views/modals/editListing/EditListing';
import DebugLog from '../views/modals/DebugLog';
import ModeratorDetai... | JavaScript | 0 | @@ -1124,35 +1124,215 @@
Options)
+;
%0A
- .render()%0A
+// use a timeout to prevent the editModal from being undefined when the view listing%0A // function is set due to the override of the open method%0A setTimeout(() =%3E %7B%0A editListingModal.render()
.open();
@@ -1324,32 +1324,39 @@
ender().open(... |
69c1b63200c2c9c4801fdcf6c832e596de2e85e2 | fix DGB color | web/js/morphSVG.js | web/js/morphSVG.js | $(document).ready(function(){
var $iconMorphWrapper = $(".icon-morph-wrapper");
function moveMorph(){
if ($(window).width() < 1281) {
$( "#intro-inner" ).append( $iconMorphWrapper);
}
else {
$( "#sidebar-inner" ).prepend( $iconMorphWrapper);
}
}
... | JavaScript | 0.000001 | @@ -977,12 +977,39 @@
'#00
-2254
+7cd6',%0A 'dgb' : '#007cd6
',%0A
|
c4d628eae8bbe7624ee2f837c99786a3bc54f28f | Update log message for bad config.json | src/parser.js | src/parser.js | 'use strict';
const logger = require('./logger.js');
module.exports = parse;
const PARSERS = {
'text': parseTextItem,
'boolean': parseBooleanItem,
'attribute': parseAttributeItem,
'detailedProfileInformation': parseDetailedProfileInformation,
'counters': parseCounters,
'contentCounters': par... | JavaScript | 0.000001 | @@ -546,17 +546,34 @@
r.error(
-'
+%60Bad config.json.
No parse
@@ -586,15 +586,31 @@
type
-'
+=$%7Btype%7D%60
,
+%7B
type
+: type%7D
);%0A%7D
|
58f9d610136e98cb6eb4968dd102636011d63b0d | add missing coverage for default configuration file | spec/lib/services/configuration-spec.js | spec/lib/services/configuration-spec.js | // Copyright 2014, Renasar Technologies Inc.
/* jshint node:true */
'use strict';
describe(require('path').basename(__filename), function () {
var Constants, fs, nconf;
helper.before();
before(function () {
Constants = helper.injector.get('Constants');
fs = helper.injector.get('fs');
... | JavaScript | 0 | @@ -2379,32 +2379,911 @@
%7D);%0A
+%0A describe('defaults', function () %7B%0A before(function () %7B%0A sinon.stub(fs, 'existsSync').withArgs(%0A Constants.Configuration.Files.Default%0A ).returns(true);%0A%0A ... |
87c63aaaa809d62bf11090520fa139297a073543 | change import util back to explicit import | src/parser.js | src/parser.js | import * as u from './util';
let defaults = {}
let openTagRE = /<([^ \/]+?)( [^>]+)*?>/g
function lex(str) {
let ret = []
let pos = 0
for (let match; match = openTagRE.exec(str);) {
ret.push( str.slice(pos, match.index) )
ret.push(match)
pos = (match.in... | JavaScript | 0 | @@ -4,14 +4,16 @@
ort
-* as u
+%7B each %7D
fro
@@ -22,17 +22,16 @@
'./util'
-;
%0D%0A%0D%0Alet
|
1b703068ad476d91fc060120738207abfd986546 | add info command | commands.js | commands.js | exports.handle = handle;
exports.replyMention = replyMention;
exports.greet = greet;
function handle(data)
{
for (var i=0;i<commands.length;i++)
{
if (data.message.slice(0,commands[i].name.length) === commands[i].name) {
//missing permission level check
commands[i].handler(data)... | JavaScript | 0.000001 | @@ -1283,16 +1283,223 @@
%7D%0A%7D;%0A%0A
+var _info=%7B%0A %22name%22:%22.info%22,%0A %22level%22:1,%0A %22handler%22:function(data)%7B%0A bot.sendChat(%22NI's plug moderator bot! Check the source and contribute at https://github.com/NIAEFEUP/PlugBot%22);%0A %7D%0A%7D%0A%0A
var comm
@@ -1514,10 ... |
cd0322c9b58936a51a4b3a5d5a0b2ad97a824d35 | Update URL on compare page building removal | app/scripts/views/compare/compare-controller.js | app/scripts/views/compare/compare-controller.js | (function () {
'use strict';
var CompareConfig = {
fields: [
'energy_star',
'site_eui',
'total_ghg',
'electricity',
'natural_gas',
'fuel_oil',
'steam',
'water_use'
]
};
/*
* ngInject
... | JavaScript | 0 | @@ -350,16 +350,27 @@
troller(
+$location,
$scope,
@@ -417,23 +417,10 @@
fig,
- MOSCSSValues,
%0A
+
@@ -445,16 +445,29 @@
+MOSCSSValues,
buildin
@@ -1006,32 +1006,69 @@
Data.data.rows;%0A
+ /*jshint camelcase: false */%0A
$scope.b
@@ -1124,16 +1124,52 @@
name');%0A
+ /*... |
da6efa564500bb8e9b3ee5303f66c4dd503eeb7f | fix download file promise | common/http.js | common/http.js | /*global define */
define(['plugins/http', 'jquery', 'config/httpServiceApiLinks', 'common/loadingMask/loadingMask', '../shell', 'services/logger', 'i18n'],
function (http, $, httpServiceApiLinks, loadingMask, shell, logger, i18n) {
'use strict';
var TIMEOUT = 30000;
var userInfoUrl = 'acc... | JavaScript | 0.000001 | @@ -1498,23 +1498,24 @@
var
-promise
+deferred
= $.Def
@@ -3435,41 +3435,8 @@
%7D
-%0A%0A return xmlhttp;
%0A
@@ -3465,15 +3465,16 @@
-promise
+deferred
.fai
@@ -3500,16 +3500,46 @@
(this));
+%0A%0A return deferred;
%0A
|
da995425152a56c75d37bd06f8876c796498b85a | Update responsiveTest.js | js/responsiveTest.js | js/responsiveTest.js | defaultURL = 'wikipedia.com'; //<---- CHANGE TO YOUR WEBSITE URL
$.support.cors = true;
//show loading graphic
function showLoader(id) {
$('.imageLoader').fadeIn('slow');
}
//hide loading graphic
function hideLoader(id) {
$('.imageLoader').fadeOut('slow');
}
//load page
function loadPage(url)
{
i... | JavaScript | 0 | @@ -666,11 +666,8 @@
N( %22
-../
json
|
6dd7f3d520de071c49454abbb2575315c76ee956 | Fix config object bug. Name convention. | js/scrollProgress.js | js/scrollProgress.js | // scrollProgress by Jeremias Menichelli - MIT License
scrollProgress = (function(document, body, undefined){
var progress = 0
, progressWrapper
, progressElement
, config
, endPoint
// set flag
, isSet = false;
var _init = function(el){
var element = el || body;
endPoint = _getElementGap(element);
if ... | JavaScript | 0 | @@ -246,97 +246,58 @@
%7B%0A%09%09
-var element = el %7C%7C body;%0A%09%09endPoint = _getElementGap(element);%09%0A%0A%09%09if (!isSet) _se
+if (!isSet) _set();%0A%0A%09%09endPoint = _getEndPoin
t();%0A
-%0A
%09%09_u
@@ -309,23 +309,16 @@
Metrics(
-element
);%0A%09%09win
@@ -394,17 +394,8 @@
null
-, element
);%0... |
319c6fa95b8bad701dfa83431e30563b29c45642 | fix modules file | js/sky/src/module.js | js/sky/src/module.js | /*jslint browser: true */
/*global angular */
(function () {
'use strict';
var modules = [
'sky.actionbar',
'sky.alert',
'sky.autonumeric',
'sky.avatar',
'sky.card',
'sky.check',
'sky.checklist',
'sky.chevron',
'sky.contextmenu',
... | JavaScript | 0.000001 | @@ -513,24 +513,47 @@
highlight',%0A
+ 'sky.keyinfo',%0A
'sky
|
58efc4eae48a8e33b603ac8e5f05807071fd5998 | add getObject | src/places.js | src/places.js | module.exports = createPlacesClient;
var buildSearchMethod = require('./buildSearchMethod.js');
function createPlacesClient(algoliasearch) {
return function places(appID, apiKey, opts) {
var cloneDeep = require('./clone.js');
opts = opts && cloneDeep(opts) || {};
opts.hosts = opts.hosts || [
'pla... | JavaScript | 0.000015 | @@ -837,24 +837,264 @@
es/query');%0A
+ index.getObject = function(objectID, callback) %7B%0A return this.as._jsonRequest(%7B%0A method: 'GET',%0A url: '/1/places/' + encodeURIComponent(objectID),%0A hostType: 'read',%0A callback: callback%0A %7D);%0A %7D;%0A
return i
|
c91615e907c52fe5ff9d38cae2e09d6a3bb7edb5 | update player | src/player.js | src/player.js | /*
* player.js
* 2015/12/23
* @auther minimo
* This Program is MIT license.
*/
phina.define('Player', {
superClass: 'phina.display.Sprite',
init: function() {
this.superInit('hiyoco', 32, 32);
this.setScale(2).setOrigin(0.5, 1.0);
this.ss = phina.accessory.FrameAnimation('hiyoco')
... | JavaScript | 0 | @@ -148,16 +148,56 @@
rite',%0A%0A
+ vy: 0,%0A jumpCount: 0,%0A jumpMax: 2,%0A%0A
init:
@@ -205,24 +205,24 @@
unction() %7B%0A
-
this.sup
@@ -461,17 +461,17 @@
mpMax =
-2
+3
;%0A %7D,%0A%0A
@@ -767,32 +767,33 @@
ion() %7B%0A if (
+!
this.inSquat %7C%7C
@@ -785,26 +785,26 @@
his.inSquat
-%7C%7C... |
b3a4cc8aba9bb1f4c386a439ce4dbfd7ffc8943d | normalize object syntax | src/player.js | src/player.js | let player;
export default function startPlayerIframeScript() {
window.onYouTubeIframeAPIReady = () => {
window.MBYTPlayer = new YT.Player('yt-player-div', {
height: '100%',
width: '100%',
playerVars: {
'playsinline': 1,
'controls': 1,
'showinfo': 0,
'rel': 0,
... | JavaScript | 0.000021 | @@ -425,16 +425,17 @@
AIN_NAME
+,
%0A %7D
@@ -585,24 +585,25 @@
yerError
+,
%0A %7D
%0A %7D);
@@ -586,32 +586,33 @@
erError,%0A %7D
+,
%0A %7D);%0A%0A pl
|
3f48872ddadf78eed78f1509af9e6e3c2cb0bcc8 | Use TransactionEmitter for Plugin | src/plugin.js | src/plugin.js | var Promise = require('bluebird');
var TEventEmitter = require('./traits/t-event-emitter');
var JanusError = require('./error');
var Transaction = require('./transaction');
/**
* @param {Session} session
* @param {String} name
* @param {String} id
* @constructor
*/
function Plugin(session, name, id) {
var plugi... | JavaScript | 0 | @@ -33,21 +33,27 @@
);%0Avar T
-Event
+Transaction
Emitter
@@ -78,13 +78,19 @@
s/t-
-event
+transaction
-emi
@@ -334,22 +334,26 @@
= T
-Event
+Transaction
Emitter
-()
.cre
@@ -845,115 +845,8 @@
%7D;%0A%0A
-Plugin.prototype.addTransaction = function(transaction) %7B%0A this._session.addTransaction(transaction... |
e443459f4103427ae68d4c95c1d67342989d58e8 | Update baseview.js | js/views/baseview.js | js/views/baseview.js | define(['jquery', 'underscore', 'backbone', 'globals/utils', 'globals/eventbus', 'jquery.autosize', 'bootstrap', 'bootstrap.mods', 'bootbox'],
function($, _, Backbone, Utils, EventBus) {
"use strict";
console.log("BaseView.");
var BaseView = Backbone.View.extend({
utils: Utils,
options: {},
... | JavaScript | 0.000001 | @@ -497,32 +497,57 @@
ptions);%0A %0A
+ if(this.model) %7B%0A
this.liste
@@ -586,16 +586,24 @@
ender);%0A
+ %7D%0A
%7D,%0A
|
19a89b0c305c4cf5f9a91bc46359f4b98855ad52 | Fix bug that prevented change of time | js/views/settings.js | js/views/settings.js |
/* Logging */
import * as bows from 'bows';
var log = bows('Settings');
import * as View from 'ampersand-view';
import * as moment from 'moment';
// import * as sexagesimal from 'sexagesimal';
import * as removeClass from 'amp-remove-class';
export default View.extend({
bindings: {
'model.time': {
typ... | JavaScript | 0.000001 | @@ -1183,32 +1183,37 @@
n',%0A 'change
+input
%5Bdata-hook=time%5D
@@ -1212,22 +1212,16 @@
ok=time%5D
- input
': 'chan
|
1cc47fd87d4f977f1fb736dd95537b9fd2aac56c | Remove safari from jsCssMap | src/prefix.js | src/prefix.js | // Export javascript style and css style vendor prefixes.
// Based on "transform" support test.
import isInBrowser from 'is-in-browser'
let js = ''
let css = ''
let browser = ''
// We should not do anything if required serverside.
if (isInBrowser) {
// Order matters. We need to check Webkit the last one because
... | JavaScript | 0 | @@ -460,32 +460,8 @@
kit:
- '-webkit-',%0A safari:
'-w
|
c2138a36f65bec707c834fea8281abae6059dddb | Fix yahoo sending | packages/isomorphic-core/src/sendmail-client.es6 | packages/isomorphic-core/src/sendmail-client.es6 | /* eslint no-useless-escape: 0 */
const fs = require('fs');
const nodemailer = require('nodemailer');
const mailcomposer = require('mailcomposer');
const {APIError} = require('./errors')
const MAX_RETRIES = 1;
const formatParticipants = (participants) => {
return participants.map(p => `${p.name} <${p.email}>`).join... | JavaScript | 0 | @@ -3633,32 +3633,89 @@
r.email);%0A %7D%0A
+ envelope.from = customMessage.from.map(c =%3E c.email)%0A
const raw =
|
3a1cc6c305f3f9bc4568f5c6e720c3bf946726a3 | Remove non-digit values when making version comparisons | kWidget/mwEmbedLoader.js | kWidget/mwEmbedLoader.js | /**
* A few mwEmbed utilities used on the page side.
*/
// The version of this script
var logIfInIframe = ( typeof preMwEmbedConfig != 'undefined' && preMwEmbedConfig['EmbedPlayer.IsIframeServer'] ) ? ' ( iframe ) ': '';
kWidget.log( 'Kaltura HTML5 Version: ' + MWEMBED_VERSION + logIfInIframe );
// Define mw ( if ... | JavaScript | 0.000042 | @@ -1780,16 +1780,178 @@
ON;%0A%09%09%7D%0A
+%09%09// strip all non-numeric values from both strings: %0A%09%09minVersion = minVersion.replace(/%5B%5E%5Cd.-%5D/g, '');%0A%09%09clientVersion = clientVersion.replace(/%5B%5E%5Cd.-%5D/g, '');%0A
%09%09var mi
|
5d4d3dc2b0445a1fa08a4136f3d9a16085114379 | Remove switchContent animations to reduce UI lag | homedisplay/display/static/js/main.js | homedisplay/display/static/js/main.js | moment.locale("fi");
function csrfSafeMethod(method) {
// these HTTP methods do not require CSRF protection
return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
}
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie != "") {
var cookies = document.cookie.spli... | JavaScript | 0 | @@ -1790,15 +1790,12 @@
x%22).
-sl
+h
ide
-Up
();
@@ -2143,16 +2143,11 @@
m).s
-lideD
+h
ow
-n
();%0A
|
1b0217fed24c44da12c5eac4630eff4a7f65ca9f | Update routes.js | src/routes.js | src/routes.js | import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import App from './components/App';
import BlogContainer from './containers/blog-container';
import PostEditorContainer from './containers/post-editor-containe... | JavaScript | 0.000002 | @@ -354,16 +354,78 @@
s/Test';
+%0Aimport ScgSearchHelper from './components/scg-search-helper';
%0A%0Aexport
@@ -782,24 +782,81 @@
ntainer%7D /%3E%0A
+ %3CRoute path=%22scg%22 component=%7BScgSearchHelper%7D /%3E%0A
%3C/Rout
|
292d030fbc3048bf2c98c4d414537681f5d3493a | Use alphabetical route order for easier merging | src/routes.js | src/routes.js | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... | JavaScript | 0.000015 | @@ -719,16 +719,74 @@
%7D%0A %7D;%0A%0A
+ /**%0A * Please keep routes in alphabetical order%0A */%0A
return
@@ -788,16 +788,16 @@
eturn (%0A
-
%3CRou
@@ -825,16 +825,50 @@
=%7BApp%7D%3E%0A
+ %7B /* Home (main) route */ %7D%0A
%3CI
@@ -900,149 +900,47 @@
%7D/%3E%0A
+%0A
-%3CRoute pa... |
dfde739f1879960b920ffa4c8758e16b6d2218cc | simplify constructor | src/schema.js | src/schema.js | class SchemaValidatorError extends Error {
constructor(message) {
super();
this.message = message;
}
}
class Reject {
constructor(message, name, value) {
this.message = message;
this.name = name || [];
this.value = value || [];
}
withMoreInfo(name, value) {
return new Reject(this.mess... | JavaScript | 0.001516 | @@ -2271,130 +2271,36 @@
-if (validator) %7B%0A Object.keys(validator).forEach(key =%3E %7B%0A this%5Bkey%5D = validator%5Bkey%5D;%0A %7D);%0A %7D
+this._validator = validator;
%0A
@@ -3060,20 +3060,26 @@
= this.
-type
+_validator
? valid
@@ -3086,16 +3086,27 @@
ate(this
+._va... |
72dddcd0de5b164b3648755b9bb3872d3651f5e0 | Optimize searching (by not computing index twice) | src/search.js | src/search.js | import {ascend, assoc, descend, flatten, isEmpty, keys, map, merge, prop, sortBy, sortWith} from "ramda"
import * as diacritics from 'diacritics'
function preprocessParametersAndVariables(parameters, variables) {
return flatten(
[parameters, variables].map(
parametersOrVariables => keys(parametersOrVariabl... | JavaScript | 0 | @@ -967,191 +967,297 @@
-if (item.name.includes(word)) %7B%0A item.matchesInName += 1%0A item.indexesSum += item.name.indexOf(word)%0A %7D else if (item.normalizedDescription.includes(word)
+const indexInName = item.name.indexOf(word)%0A if (indexInName %3E -1) %7B%0A item... |
e5edf2e0d470c02003fce5e572412dd24eaa71ae | event name fix 2 | src/server.js | src/server.js | /**
@file server.js
@brief Node.JS Server.
@author Oleg Kertanov <okertanov@gmail.com>
@date September 2012
@copyright Copyright (C) 2012 Oleg Kertanov <okertanov@gmail.com>
@license BSD
@see LICENSE file
*/
(function()
{
// Strict mode by default
"use strict";
/... | JavaScript | 0.999992 | @@ -2373,17 +2373,17 @@
s.emit('
-j
+l
uxboard.
|
454ffe4ca51ebc4ef1caa56c771983632548bfce | implement basic post handler | src/server.js | src/server.js | var connect = require('connect');
var request = require('request');
var citeproc = require('./citeproc');
var doi = require('./doi');
var settings = require('./settings');
function init() {
console.log("creating server...");
var server = connect();
server.use(connect.query());
server.use(connect.logger());
serve... | JavaScript | 0.000002 | @@ -345,16 +345,45 @@
html'));
+%0A%09server.use(connect.json());
%0A%0A%09serve
@@ -519,29 +519,103 @@
ormat',
-formatHandler
+method(%22GET%22, formatHandler));%0A%09server.use('/format', method(%22POST%22, formatPostHandler)
);%0A%0A%09ser
@@ -885,24 +885,417 @@
%09%7D);%0A%09%7D;%0A%7D%0A%0A
+function method(... |
53f40fa854e02ed7a0811ed682148d70e7e588ad | Headers are case in-sensitive | src/server.js | src/server.js | /* eslint no-console: 0 */
import 'source-map-support/register';
import http from 'http';
import express from 'express';
import compression from 'compression';
import React from 'react';
import helmet from 'helmet';
import Helmet from 'react-helmet';
import { Router, RouterContext, match } from 'react-router';
import {... | JavaScript | 0.998317 | @@ -1656,17 +1656,17 @@
et('
-C
+c
ontent-
-T
+t
ype'
|
bb11a69702b8ab5545a87967b9f188b4e12f738d | Remove unnecessary empty code block | src/shaven.js | src/shaven.js | // Shaven {{ VERSION }} by Adrian Sieber (adriansieber.com)
// array: Array containing the DOM fragment in JsonML
// returnObject: Contains elements identified by their id
shaven = function dom (array, namespace, returnObject) {
'use strict'
var doc = document,
i = 1,
unescaped,
callback,
attributeKey
... | JavaScript | 0.000031 | @@ -1669,82 +1669,8 @@
if (
-array%5B0%5D instanceof Element) %7B%0A%09%09// Is already a DOM element%0A%09%7D%0A%09else if (
Arra
@@ -1708,16 +1708,52 @@
%09%7D%0A%09else
+ if (!(array%5B0%5D instanceof Element))
%0A%09%09throw
|
b7aad5190f552c08424cac3aa3e88088b65e03f8 | fix find ancestor logic | packages/veui/src/utils/helper.js | packages/veui/src/utils/helper.js | import { includes, camelCase, get, isString, isObject, assign } from 'lodash'
import Vue from 'vue'
export function getTypedAncestorTracker (type, direct = false) {
return {
computed: {
[camelCase(type)] () {
return getTypedAncestor(this, type, direct)
}
}
}
}
export function getTypedA... | JavaScript | 0.000576 | @@ -570,42 +570,42 @@
ion
-getNonTransparentParent (component
+findAncestor (component, predicate
) %7B%0A
@@ -666,22 +666,24 @@
if (
-!isTyp
+predicat
e(curren
@@ -687,23 +687,8 @@
rent
-, 'transparent'
)) %7B
|
eb271bfa6c2100f4edbad454249d8bf5cee3f915 | Add 'checked' to raw attributes | src/update.js | src/update.js | /**
* React Blessed Update Schemes
* =============================
*
* Applying updates to blessed nodes correctly.
*/
import _ from 'lodash';
const RAW_ATTRIBUTES = [
// Alignment, Orientation & Presentation
'align',
'valign',
'orientation',
'shrink',
'padding',
'tags',
'shadow',
// Font-rela... | JavaScript | 0.000004 | @@ -641,24 +641,52 @@
'height',%0A%0A
+ // Checkbox%0A 'checked',%0A%0A
// Misc%0A
|
ff3f060eb02c44882b9873c6986cb78856fea160 | update vendor.js | src/vendor.js | src/vendor.js | // jquery
require('jquery');
require('bootstrap');
require('availity-uikit');
require('select2');
require('velocity');
require('eonasdan-bootstrap-datetimepicker');
// utils
require('lodash');
// angular
require('angular');
require('angular-sanitize');
require('angular-ui-router');
// availity
require('availity-angu... | JavaScript | 0 | @@ -125,17 +125,8 @@
re('
-eonasdan-
boot
@@ -139,12 +139,8 @@
date
-time
pick
|
6524b7db9694cc710cea1bf29e4df5b19d4dbabe | Generalize chart engine rending | performance/js/realtime-render.js | performance/js/realtime-render.js | $(document).ready(function() {
highcharts.renderLineWithRealtimeData("highchartsContainer");
}); | JavaScript | 0.000006 | @@ -1,21 +1,63 @@
-$(document
+function renderWithRealtimeData(engines) %7B%0A%09$(engines
).
-r
ea
-dy
+ch
(fun
@@ -66,72 +66,182 @@
ion(
-) %7B%0A%09highcharts.renderLineWithRealtimeData(%22highchartsContainer%22
+index, engineName) %7B%0A%09%09window%5BengineName%5D.renderLineWithRealtimeData(engineName + 'Conta... |
be51e2f4131d94e94bd62a0f4e958e76c6a4f2ab | Fix to ResponsiveButton | adminclient/src/components/ResponsiveButton/index.js | adminclient/src/components/ResponsiveButton/index.js | import React, { Component, PropTypes, } from 'react';
import { Button, } from 're-bulma';
const propTypes = {
onClick: PropTypes.string,
buttonProps: PropTypes.object,
spanProps: PropTypes.object,
style: PropTypes.object,
onclickProps:PropTypes.any,
};
const defaultProps = {
// onClick: '/',
style: {},... | JavaScript | 0.000002 | @@ -619,16 +619,28 @@
is.props
+.reduxRouter
') !== -
@@ -679,16 +679,28 @@
is.props
+.reduxRouter
%5B this.p
@@ -737,16 +737,28 @@
s.props.
+reduxRouter.
', '') %5D
@@ -855,36 +855,24 @@
c:this.props
-.reduxRouter
') !== -1) %7B
@@ -903,36 +903,24 @@
= this.props
-.reduxRouter
%5B this.props
@@ -953,27 +953,... |
c0255d18523ceae76a90b689139435fef8ac0edb | Fix typo | test/admin.js | test/admin.js | /// test admin commands
var assert = require('assert');
var after = require('after');
var through = require('through2');
var duplexer = require('duplexer2');
var fix = require('..');
var Msgs = fix.Msgs;
suite('admin');
test('logon', function(done) {
var self = this;
done = after(2, done);
var stream_... | JavaScript | 0.999999 | @@ -5815,18 +5815,19 @@
t('seque
-st
+nce
reset',
|
07206276060f2d7a27b2098a3922c88aafc5702d | Support page limit | extensions/whistlepost-paging-lib/src/main/resources/SLING-INF/content/js/paging.js | extensions/whistlepost-paging-lib/src/main/resources/SLING-INF/content/js/paging.js | function calculateOffset(pageVal, data) {
data.offset = 0;
if (pageVal) {
var range = pageVal.substring(1).split("-")
if (range.length > 1) {
data.offset = Math.min(parseInt(range[0]) * data.pageSize, data.total - 1);
data.limit = Math.min(parseInt(range[1]) * data.pageSize + data.pageSize, data.total);... | JavaScript | 0.000001 | @@ -55,16 +55,55 @@
set = 0;
+%0A%09data.limit = Number.MAX_SAFE_INTEGER;
%0A%0A%09if (p
@@ -202,32 +202,33 @@
fset = Math.min(
+(
parseInt(range%5B0
@@ -221,32 +221,37 @@
rseInt(range%5B0%5D)
+ - 1)
* data.pageSize
@@ -281,33 +281,24 @@
ata.limit =
-Math.min(
parseInt(ran
@@ -307,53 +307,8 @@
%5B1%5D)
- * d... |
8475c8a22f17aa58bda8c1b04025fcea71062667 | disable one more test, enable another | test/basic.js | test/basic.js | var sw = require('../')
var onExit = require('signal-exit')
var cp = require('child_process')
var isWindows = require('../lib/is-windows')()
var spawn = require('win-spawn')
var fixture = require.resolve('./fixtures/script.js')
var fs = require('fs')
var path = require('path')
if (process.argv[2] === 'parent') {
//... | JavaScript | 0 | @@ -1275,32 +1275,16 @@
%7D)%0A%7D)%0A%0A
-if (!isWindows)%0A
t.test('
@@ -1323,39 +1323,37 @@
var child =
-cp.exec
+spawn
(fixture
+ ' xyz')%0A%0A
@@ -1336,33 +1336,33 @@
pawn(fixture
- + '
+, %5B'
xyz'
+%5D
)%0A%0A var out
@@ -2547,32 +2547,48 @@
.end()%0A %7D)%0A%7D)%0A%0A
+if (!isWindows)%0A
t.test(... |
feaa41272293b9f84c1388d311a0c5a3f7cb6622 | add JSON.parse to benchmarks for comparison | test/bench.js | test/bench.js | var Pbf = require('../'),
Benchmark = require('benchmark'),
fs = require('fs');
var protobuf = require('protocol-buffers'),
messages = protobuf(fs.readFileSync('../vector-tile-js/proto/vector_tile.proto'));
var suite = new Benchmark.Suite(),
data = fs.readFileSync(__dirname + '/fixtures/12665.vector.p... | JavaScript | 0.000001 | @@ -320,16 +320,111 @@
pbf');%0A%0A
+var layers = new Pbf(data).readFields(readTile, %5B%5D);%0Avar layersJSON = JSON.stringify(layers);%0A%0A
suite%0A.a
@@ -513,24 +513,111 @@
le, %5B%5D);%0A%7D)%0A
+.add('native JSON.parse of the same data', function() %7B%0A JSON.parse(layersJSON);%0A%7D)%0A
.add('decode
|
8cb614cdcb01e317128e0b94edd28a55923058b1 | Write test to ensure that building with a Chrome profile works | test/build.js | test/build.js | 'use strict';
/**
* Module dependencies.
*/
var assert = require('assert');
var test = require('selenium-webdriver/testing');
var build = require('../lib/build');
/**
* Build.
*/
test.describe('#build', function() {
test.it('throws an error if first argument `browserName` is invalid', function() {
ass... | JavaScript | 0 | @@ -68,24 +68,61 @@
('assert');%0A
+var build = require('../lib/build');%0A
var test = r
@@ -162,45 +162,8 @@
g');
-%0Avar build = require('../lib/build');
%0A%0A/*
@@ -488,19 +488,8 @@
it('
-builds and
laun
@@ -505,32 +505,36 @@
iver', function(
+done
) %7B%0A var
@@ -634,16 +634,16 @@
Proxy')%0A
-
... |
62f13a4a58f0e5b8f5271c850608da180e5e34bb | CHANGE the loader for most code in the official example, unify js & ts loading | examples/official-storybook/webpack.config.js | examples/official-storybook/webpack.config.js | const path = require('path');
module.exports = async ({ config }) => ({
...config,
module: {
...config.module,
rules: [
...config.module.rules,
{
test: /\.stories\.jsx?$/,
use: require.resolve('@storybook/addon-storysource/loader'),
include: [
path.resolve(__di... | JavaScript | 0 | @@ -154,16 +154,25 @@
le.rules
+.slice(1)
,%0A
@@ -194,21 +194,23 @@
/%5C.
-stories%5C.j
+(mjs%7Cjsx?%7Ct
sx?
+)
$/,%0A
@@ -226,79 +226,251 @@
se:
-require.resolve('@storybook/addon-storysource/loader'),%0A include
+%5B%0A %7B%0A loader: 'babel-loader',%0A options: %7... |
dbc8e57c63c5bdb5e618f1438340a0f64b73f074 | Build context on demand | node/spec/helpers/user_context.js | node/spec/helpers/user_context.js | var _ = require('underscore');
class Memorized {
constructor(func) {
this.func = func;
this.value = null;
this.called = false;
}
reset() {
this.value = null;
this.called = false
}
call(context) {
if (!this.called) {
this.value = this.func.call(context);
this.called = tru... | JavaScript | 0.999101 | @@ -633,23 +633,141 @@
his.
-buildContext())
+getContext());%0A %7D%0A%0A getContext() %7B%0A if (!this.context) %7B%0A this.context = this.buildContext();%0A %7D%0A return this.context
;%0A
@@ -1334,16 +1334,41 @@
(func);%0A
+ this.context = null;%0A
%7D%0A%0A m
|
f4ccddd925a839487f8bbe7a6819597f9afd805c | remove built in Classes from test | test/class.js | test/class.js | var emitterTest = require('./common').testEmitter;
var Luc = require('../lib/luc-es5-shim'),
expect = require('expect.js');
function defineClassWithAllOptions() {
function Adder() {}
Adder.prototype.add = function(a, b) {
return a + b;
};
return Luc.define({
$super: Adder,
... | JavaScript | 0 | @@ -4044,32 +4044,102 @@
', function() %7B%0A
+ function A() %7B%7D%0A function B()%7B%7D%0A function C()%7B%7D%0A
var Comp
@@ -4218,22 +4218,17 @@
ructor:
-String
+A
,%0A
@@ -4248,22 +4248,17 @@
name: '
-string
+a
'%0A
@@ -4305,20 +4305,17 @@
ructor:
-Date
+B
,%0A ... |
bb687343829991d14d8d13f60011fc89209c61fc | update the changed file domain | test/cloud.js | test/cloud.js | 'use strict';
describe('AV.Cloud', function() {
var originalServerURLs, originalAppId, originalAppKey, originalUseMasterKey;
before(function() {
originalServerURLs = AV._config.serverURLs;
originalAppId = AV.applicationId;
originalAppKey = AV.applicationKey;
originalUseMasterKey = AV._config.useMa... | JavaScript | 0.000002 | @@ -2696,17 +2696,17 @@
'http://
-a
+l
c-4h2h4o
@@ -2713,14 +2713,19 @@
kw.c
-louddn
+n-n1.lcfile
.com
|
7b5a00a14cc5ed2a119afa85b28d50b875be58b4 | Remove debugging log. | test/error.js | test/error.js | /*jslint node: true */
/* global -Promise */
"use strict";
var dualapi = require('../index');
var _ = require('lodash');
var assert = require('assert');
var Promise = require('bluebird');
describe('dualapi', function () {
describe('error', function () {
var d;
beforeEach(function (done) {
... | JavaScript | 0 | @@ -4290,48 +4290,8 @@
) %7B%0A
- console.log('done...');%0A
|
87083e95667e99111ca49aa76f438507ae6253d2 | Fix default nav behavior | www/source/javascripts/nav.js | www/source/javascripts/nav.js | const navBreakpoint = 710;
const $mainNav = $('#main-nav:not(.has-sidebar)');
const $navLinks = $('.main-nav--links');
const $navToggle = $('.main-nav--toggle');
const currentPagePath = location.pathname;
const navPageLinks = ['about', 'docs', 'tutorials', 'community'];
const stickyBreakpoint = 120;
const stickyVisible... | JavaScript | 0.000001 | @@ -53,30 +53,12 @@
-nav
-:not(.has-sidebar)
');%0A
+
cons
@@ -349,16 +349,61 @@
ion() %7B%0A
+ if ($mainNav.is(%22:not(.has-sidebar)%22)) %7B%0A
if ($(
@@ -433,24 +433,26 @@
eakpoint) %7B%0A
+
$mainNav
@@ -520,24 +520,26 @@
point);%0A
+
+
$mainNav.tog
@@ -607,24 +607,26 @@
reakpoint);%0A
+ ... |
a6b2639e072e86363d43002712938479e060b2b9 | Update template | test/httpd.js | test/httpd.js | /* eslint-env node, es6 */
'use strict';
const
DOC_ROOT = __dirname,
PORT = 8080,
MODULE_PACKAGES = [
'jasmine-core',
'test-page-loader',
'cssprefix'
],
http = require('http'),
staticAlias = require('node-static-alias'),
logger = (() => {
const log4js = require('log4js');
log4js.co... | JavaScript | 0.000001 | @@ -1014,16 +1014,24 @@
alias:
+%0A
MODULE_
@@ -1057,18 +1057,16 @@
eName =%3E
- (
%0A
@@ -1066,16 +1066,19 @@
+ (
%7B // nod
@@ -1087,16 +1087,18 @@
modules%0A
+
@@ -1147,24 +1147,26 @@
,%0A
+
+
serve: %60$%7Bre
@@ -1201,16 +1201,18 @@
eplace(%0A
+
... |
9b3f5a5437bf6507cfefb2af32fc40c3776c22ec | Remove unused variables | test/index.js | test/index.js | var assert = require('assert');
var fs = require('fs');
var join = require('path').join;
var transform = require('../');
var file = join(__dirname, 'input.json');
var output;
var failed = false;
function assertEqual(output, expected) {
console.log('\tOutput: ', JSON.stringify(output));
console.log('\tExpected:'... | JavaScript | 0.000145 | @@ -120,50 +120,8 @@
);%0A%0A
-var file = join(__dirname, 'input.json');%0A
var
|
af11087b6bda8e8d5f5fba1a220cca1db1c612c0 | Fix sinon deprecation warns | test/index.js | test/index.js | 'use strict';
var sinon = require('sinon');
var assert = require('assert');
var path = require('path');
var fs = require('fs');
var maxmind = require('../index');
var Reader = require('../lib/reader');
describe('index', function() {
var dataDir = path.join(__dirname, 'data/test-data');
var dbPath = path.join(data... | JavaScript | 0.00474 | @@ -472,18 +472,28 @@
'watch'
-,
+).callsFake(
function
@@ -3455,18 +3455,28 @@
eadFile'
-,
+).callsFake(
function
|
fa759e31bdc99b0cd27d15b5950342381beaa0ac | Clean up unit tests. | test/index.js | test/index.js | 'use strict';
const B = require('bluebird');
const expect = require('chai').expect;
const Reminisce = require('../');
describe('plugin', () => {
const memories = [
{ key: 'test1', val: 1, ttl: 10000 },
{ key: 'test2', val: 2 }
];
let cache;
beforeEach(() => {
cache = new Reminisce({
memori... | JavaScript | 0 | @@ -143,21 +143,68 @@
=%3E %7B%0A
-const
+let cache;%0A let memories;%0A%0A beforeEach(() =%3E %7B%0A
memorie
@@ -209,24 +209,26 @@
ies = %5B%0A
+
%7B key: 'test
@@ -253,24 +253,26 @@
0000 %7D,%0A
+
%7B key: 'test
@@ -290,45 +290,13 @@
%7D%0A
+
%5D;%0A
- let cache;%0A%0A beforeEach(()... |
1aafca1fa4f1459219876ad2420eb8340c64c2de | Implement some JavaScript to make an ajax call to clear the cache | src/Backend/Modules/Settings/Js/Settings.js | src/Backend/Modules/Settings/Js/Settings.js | /**
* Interaction for the settings index-action
*/
jsBackend.settings =
{
init: function()
{
$('#facebookAdminIds').multipleTextbox(
{
emptyMessage: utils.string.ucfirst(jsBackend.locale.msg('NoAdminIds')),
addLabel: utils.string.ucfirst(jsBackend.locale.lbl('Add')),
... | JavaScript | 0.000003 | @@ -517,16 +517,104 @@
ection);
+%0A $('%5Bdata-role=%22fork-clear-cache%22%5D').on('click', jsBackend.settings.clearCache);
%0A%0A
@@ -2635,16 +2635,2082 @@
%7D);%0A
+ %7D,%0A%0A clearCache: function (e)%0A %7B%0A // prevent default%0A e.preventDefault();%0A%0A // save... |
713cc7c56d3a38a795a9982074d011f71da0975f | timeout setting | test/index.js | test/index.js | 'use strict';
require('mocha');
require('chai').should();
var png2psd = require('../'),
fs = require('fs'),
path = require('path'),
fixturesDir = path.join(__dirname, './fixtures/');
describe('png2psd', function() {
it('should convert RGB PNG file to RGB PSD file.', function(done) {
this.timeou... | JavaScript | 0.999588 | @@ -307,33 +307,34 @@
this.timeout(
-8
+15
000);%0A test('
@@ -434,33 +434,34 @@
this.timeout(
-8
+15
000);%0A test('
@@ -583,33 +583,34 @@
this.timeout(
-8
+15
000);%0A test('
@@ -769,9 +769,10 @@
out(
-8
+15
000)
|
f3403e8cdc479e4eaa122632168cf11a729a3cad | Add client#updateOrder should throw if no fields parameter is provided test. | test/index.js | test/index.js | /**
* test/index.js
* Contains tests for client entry point.
*
* @author Francis Brito <fr.br94@gmail.com>
* @license MIT
*/
/* global describe, it */
'use strict';
var should = require('should');
describe('Client', function () {
describe('constructor', function () {
it('should throw if no API key i... | JavaScript | 0 | @@ -3352,24 +3352,91 @@
nfirmed.');%0A
+ it('should throw if no %60fields%60 parameter is provided.');%0A%0A
%0A it(
|
2162824829d990d1751c3ecb7635c176ae9522d3 | Switch back to emscripten incoming | packages/runtime/scripts/emscripten-installer.js | packages/runtime/scripts/emscripten-installer.js | const fs = require("fs");
const path = require("path");
const dependencyUtils = require("../../compiler/scripts/dependency-utils");
const EMSCRIPTEN_GIT_URL = "https://github.com/kripken/emscripten.git";
// TODO Switch to emsdk if web assembly backend is included
function buildEmscripten(directory) {
console.log(... | JavaScript | 0 | @@ -482,19 +482,16 @@
ry);%0A
- //
depende
@@ -560,157 +560,8 @@
ry);
-%0A dependencyUtils.exec(%22git -C %25s checkout d1a1fc121b7d6aab9adcb0c418453d48be318754%22, emscriptenDirectory); // use last working until #23 is fixed
%0A%0A
|
fbf577748c54febf301aa8638d17c1862d0f69c4 | Fix able to challenge bug | controllers/Users.js | controllers/Users.js | const bcrypt = require('bcrypt');
const models = require('../models');
const { logger } = require('../utils');
const Challenge = models.Challenge;
const Manage = models.Manage;
const Performance = models.Performance;
const Result = models.Result;
const Spot = models.Spot;
const User = models.User;
function UsersContr... | JavaScript | 0 | @@ -3148,32 +3148,33 @@
lenge, results,
+%5B
currentPerforman
@@ -3172,24 +3172,25 @@
Performance%5D
+%5D
) =%3E%0A
@@ -3445,19 +3445,16 @@
data%5B2%5D
-%5B0%5D
, result
|
ff818d61b5dbc78cee620601856da56c76951fde | Use underscore less cube parameter | src/main/webapp/js/occ_metrics.js | src/main/webapp/js/occ_metrics.js | $(window).ready(function() {
/*
Bind the divs to load on AJAX calls.
For performance, we first determine which kingdoms have content, then load them all
An optional table attribute data-address is used to define additional filters
*/
$('table.metrics').each(function() {
var baseAddress = $(this).at... | JavaScript | 0.000001 | @@ -1025,24 +1025,23 @@
+ %22&
-IS_GEOREFERENCED
+isGeoreferenced
=tru
|
db10f7f036daa9d68f8da086f2a0818d38384dcd | update to use promises | controllers/alexa.js | controllers/alexa.js | "use strict";
var Twitter = require('twitter');
var ent = require('ent');
function alexaGetRequest(req,response,done){
var obj = {
"version": "1.0",
"sessionAttributes": {
},
"response": {
"outputSpeech": {
"type": "PlainText",
"text": "I a... | JavaScript | 0 | @@ -67,16 +67,51 @@
'ent');%0A
+var Promise = require('mpromise');%0A
function
@@ -155,457 +155,45 @@
-var obj = %7B%0A %22version%22: %221.0%22,%0A %22sessionAttributes%22: %7B%0A %7D,%0A %22response%22: %7B%0A %22outputSpeech%22: %7B%0A %22type%22: %22Plai... |
a62148e9c10c969c3b45b7184f12c92bd3966ce9 | improve cli load times (#2657) | packages/theme-patternfly-org/scripts/cli/cli.js | packages/theme-patternfly-org/scripts/cli/cli.js | #!/usr/bin/env node
const program = require('commander');
const { start } = require('./start');
const { generate } = require('./generate');
const { build } = require('./build');
const { serve } = require('./serve');
const { version } = require('../../package.json');
program
.version(version)
.option('-c, --config ... | JavaScript | 0 | @@ -55,245 +55,16 @@
');%0A
-const %7B start %7D = require('./start');%0Aconst %7B generate %7D = require('./generate');%0Aconst %7B build %7D = require('./build');%0Aconst %7B serve %7D = require('./serve');%0Aconst %7B version %7D = require('../../package.json');%0A%0Aprogram%0A .version(version)
+%0Aprogram
%0A ... |
7b69015fc30db89967d2571398b411108596017a | Test renderAsPdf method | test/index.js | test/index.js | // Dependencies
var Invoice = require("../index");
// Create the new invoice
var myInvoice = new Invoice({
config: {
template: __dirname + "/template/index.html"
, tableRowBlock: __dirname + "/template/blocks/row.html"
}
, data: {
currencyBalance: {
main: 1
, secon... | JavaScript | 0 | @@ -2445,13 +2445,169 @@
data) %7B%0A
+ console.log(%22Saved HTML file%22);%0A%7D);%0A%0AmyInvoice.renderAsPdf(%7B%0A output: %22./my-invoice.pdf%22%0A%7D, function (err, data) %7B%0A console.log(%22Saved pdf file%22);
%0A%7D);%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.