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 |
|---|---|---|---|---|---|---|---|
3fa74dd9b111660fab73bf35f6e66855fa5c01a9 | Change PAGE_SIZE to 7 | Resources/ui/common/responses/ResponseViewHelper.js | Resources/ui/common/responses/ResponseViewHelper.js | function ResponseViewHelper() {
var _ = require('lib/underscore')._;
var Question = require('models/question');
var QuestionView = require('ui/common/questions/QuestionView');
var PAGE_SIZE = 6;
var generateLabelTextForQuestion = function(question, errorText) {
text = '';
text += question.number() + ') ';
... | JavaScript | 0.99867 | @@ -195,9 +195,9 @@
E =
-6
+7
;%0A%0A%09
|
42d0c757755297757f55873ab4bbb28775008395 | add relevant files to the Grunt release task | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
require('time-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ''
},
library: {
src: [
'bower/fold-to-ascii-js/fold-to-ascii.js',
'src/eHealt... | JavaScript | 0 | @@ -2247,16 +2247,85 @@
json'%5D,%0A
+ commitFiles: %5B'package.json', 'bower.json', 'CHANGELOG.md'%5D,%0A
|
32c48d151b1abccd5aeaa7894987550bc3f48b6e | fix deltion of regimens | BetterMeService/models/regimen/regimen.model.server.js | BetterMeService/models/regimen/regimen.model.server.js | module.exports = function () {
var api = {
createRegimen: createRegimen,
findRegimenById: findRegimenById,
findAllRegimens: findAllRegimens,
getRegimensForCoach: getRegimensForCoach,
updateRegimen: updateRegimen,
addCadetteToRegimen: addCadetteToRegimen,
deleteRegimen: deleteRegimen,
... | JavaScript | 0.000001 | @@ -2248,16 +2248,22 @@
dRemove(
+%7B_id:
regimenI
@@ -2255,32 +2255,33 @@
(%7B_id: regimenId
+%7D
, function (err,
|
a651911af82521af4b9b3f4bb555087823b0e7bd | Change tips | assets/js/func.js | assets/js/func.js | const randomBackground = () => {
let bgImg = document.getElementById('bg')
let baseURL = 'https://source.unsplash.com/random/'
let resolution = `${screen.width}x${screen.height}`
let imageURL = baseURL.concat(resolution)
caches.match(imageURL).then(response => {
bgImg.src = response.url
}).catch(() => ... | JavaScript | 0 | @@ -1678,17 +1678,17 @@
top: 2
-4
+5
0,%0A
@@ -1795,17 +1795,17 @@
top: -2
-4
+5
0,%0A
@@ -3510,16 +3510,17 @@
+%0A 'j
+-
Scroll
@@ -3549,16 +3549,17 @@
+%0A 'k
+-
Scroll
@@ -3586,16 +3586,17 @@
+%0A 'o
+-
Open th
@@ -3621,16 +3621,17 @@
+%0A 'u
+-
Up to t
@@ -3690,71 +3690,36... |
18e60b178d92e3f17ee38ff07874b1d61f66e8ef | Improve documentation | cangraph.js | cangraph.js | /**
* Cangraph
*
* Graphing and function plotting for the HTML5 canvas. Main function plotting
* engine was taken from the link below and modified.
*
* @link http://www.javascripter.net/faq/plotafunctiongraph.htm
*/
(function ($) {
/**
* Constructor and initialization
*
* @class Cangraph
... | JavaScript | 0.000004 | @@ -378,16 +378,95 @@
draw on%0A
+ * @param %7BObject%7D options Allows us to change defaults upon instantiation%0A
*/%0A
@@ -718,16 +718,50 @@
anvas;%0A%0A
+ // Set canvas and context%0A
@@ -792,17 +792,16 @@
vasId);%0A
-%0A
@@ -885,17 +885,16 @@
anvas);%0A
-%0A
|
ed2248756a134e3a63e2b2562969428d2ed1dd44 | Remove debug info from demo | demo/basics/app.js | demo/basics/app.js | window = self;
importScripts("https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js");
importScripts("https://cdn.rawgit.com/jashkenas/dbmonster/gh-pages/junkola-copied-from-ember.js");
importScripts("../../dist/global/vdom.js");
importScripts("../../dist/global/worker.js");
workerRender.ready(... | JavaScript | 0 | @@ -497,110 +497,31 @@
%0A%0A%09%09
-var drawBefore = new Date();%0A%09%09newTable = template(dbs);%0A%09%09console.log(%22took%22, new Date() - drawBefore
+newTable = template(dbs
);%0A%09
|
885e8deaafa22d9932ca9e77d5836dbb46aeee40 | Correct path for toolkit node module | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
// Builds Sass
sass: {
dev: {
files: {
'public/stylesheets/main.css': 'public/sass/main.scss',
'public/stylesheets/main-ie6.css': 'public/sass/main-ie6.scss',
'public/stylesheets/main-ie7.css': 'public/sass/ma... | JavaScript | 0 | @@ -1476,38 +1476,16 @@
toolkit/
-govuk_frontend_toolkit
',%0A
|
3bb636df90ae7bbe5de640c30bd91a1a4b15fda5 | Remove unnecessary if(1) from tester.js | test/utils/tester.js | test/utils/tester.js | const fs = require('fs');
const binarystream = require('binary');
const EventEmitter = require('events').EventEmitter;
const message = require('./lib/message');
const hexy = require('hexy').hexy;
const packets = fs.readFileSync('./packets.bin');
function nextPacketPos(b) {
console.log(hexy(b, { prefix: 'SEARCHING :... | JavaScript | 0.000013 | @@ -782,19 +782,8 @@
%0A%7D%0A%0A
-if (1) %7B%0A
func
@@ -810,26 +810,24 @@
et, data) %7B%0A
-
if (offset
@@ -850,18 +850,16 @@
return;%0A
-
consol
@@ -920,18 +920,16 @@
ength);%0A
-
consol
@@ -939,18 +939,16 @@
og(%0A
-
hexy(dat
@@ -1008,27 +1008,23 @@
Y: ' %7D)%0A
-
);%0A
-
-
... |
fc0bcc9db1e93a520706d21e8766ad38ac1fe00f | Add front end ajax call | public/src/bacon-0.0.1.js | public/src/bacon-0.0.1.js |
(function() {
var metaKeyword = '';
var src = window.location.href;
var metas = document.getElementsByTagName('meta');
for (i in metas) {
console.log(metas[i]);
if (metas[i].name && metas[i].name.indexOf('keyword') > -1) {
metaKeyword += metas[i].content;
}
}
console.log(metaKeyword, s... | JavaScript | 0.000001 | @@ -32,16 +32,59 @@
d = '';%0A
+ var baconServerUrl = %22http://127.0.0.1%22;%0A
var sr
@@ -109,16 +109,16 @@
n.href;%0A
-
var me
@@ -187,35 +187,8 @@
) %7B%0A
- console.log(metas%5Bi%5D);%0A
@@ -307,38 +307,901 @@
%0A
-console.log(metaKeyword, src);
+var divs = document.getElementsByClassName('b... |
b9cbc5b12cd9cadce17bf5c9d9b0300707c28d6f | add total_events or total_repos | archives/index.js | archives/index.js | 'use strict';
var moment = require('moment-timezone');
var request = require('request');
var clc = require('cli-color');
module.exports = {
'init': function(config) {
function getBranchName() {
if (process.env.NODE_ENV === 'production') {
return 'master'
} else {
return 'staging'
... | JavaScript | 0.000005 | @@ -1320,16 +1320,76 @@
%7D)%0A%0A
+ answer.meta%5B'total_' + type%5D = answer%5B type %5D.length;%0A
re
|
d963188553258eec34ac5b634945e3ed522293f7 | Update ripple.js | ripple.js | ripple.js | /***********************************************************************
* Ripple Directive
* Author: Brenton Klik
*
* Prerequisites:
* - AngularJS
* - $styleSheet (https://github.com/bklik/styleSheetFactory)
*
* Description:
* Creates the expanding/fading material design circle effect, that
* radiates fr... | JavaScript | 0 | @@ -599,19 +599,38 @@
tive', %5B
+'styleSheetFactory'
%5D)%0A
-
%0A.direct
@@ -1016,17 +1016,94 @@
h = 600;
-
+%0A%0A // Fuse for removeing the style.%0A var removeTime = 0;
%0A%0A
@@ -1612,24 +1612,66 @@
us: 50%25;' +%0A
+ 'pointer-events: none;' +%0A
@@ ... |
41d0af924843ae8d884df5dbe4dae32c393b27f6 | Add open devtools option in main menu | dawn/main.js | dawn/main.js | // Electron entrypoint
'use strict';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const Menu = electron.Menu;
let template = [
{
label: 'Dawn',
submenu: [
{
label: 'Quit',
accelerator: 'CommandOrControl+Q',
click: ... | JavaScript | 0.000001 | @@ -1046,24 +1046,77 @@
lopment') %7B%0A
+ // Open dev tools on startup in dev environment.%0A
mainWind
@@ -1145,34 +1145,16 @@
Tools();
- // Open dev tools
%0A %7D%0A m
@@ -1219,16 +1219,202 @@
%0A %7D);%0A%0A
+ // Add open devtools option to main menu.%0A template%5B0%5D.submenu.unshift(%7B%0A lab... |
bd42878d39a42486565548f0c4cc69fcf4e7ce69 | Move function creation out of loop | test/web-platform.js | test/web-platform.js | "use strict";
/*global describe */
/*global it */
const assert = require("assert");
const fs = require("fs");
const URL = require("../lib/url").URL;
const uRLTestParser = require("./web-platform-tests/urltestparser");
const testCases = fs.readFileSync(__dirname + "/web-platform-tests/urltestdata.txt", { encoding: "ut... | JavaScript | 0 | @@ -370,224 +370,45 @@
);%0A%0A
-describe(%22Web Platform Tests%22, function () %7B%0A const l = urlTests.length;%0A for (let i = 0; i %3C l; i++) %7B%0A const expected = urlTests%5Bi%5D;%0A%0A it(%22Parsing: %3C%22 + expected.input + %22%3E against %3C%22 + expected.base + %22%3E%22,
+function testURL(expecte... |
9bf683703552d67eadaf3c08fb031e893613a561 | Update extensions.js | extensions.js | extensions.js | !function() {
var DATE_EXT = {},
ARR_EXT = {},
OBJ_EXT = {};
var extendMe;
DATE_EXT.getLabel = (function() {
return function() {
if( isNaN( this.getTime() ) ) return NaN;
return (this.getMonth() + 1) + '/' + this.getDate() + '/' + this.getFullYear().toString().substr(2,2);
};
... | JavaScript | 0.000002 | @@ -4716,17 +4716,23 @@
-o
+nativeO
bj.proto
|
d5ee8380e285e906bfccc1a6654799d4a0cca0e3 | Fix reading html entities | frontend/src/components/individual-recipe/CookRecipe.js | frontend/src/components/individual-recipe/CookRecipe.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 in writin... | JavaScript | 0.000047 | @@ -1184,16 +1184,131 @@
recipe;%0A
+ const renderHTML = (rawHTML) =%3E React.createElement(%22div%22, %7B dangerouslySetInnerHTML: %7B __html: rawHTML %7D %7D);%0A%0A
retu
@@ -1782,20 +1782,32 @@
ey=%7Bi%7D%3E%7B
+renderHTML(
item
+)
%7D%3C/li%3E%0A
|
8782e83ece9e06c666370141ca1ad75e5ddb0346 | set slide timing | assets/js/main.js | assets/js/main.js | $(document).ready(function() {
$('#email_signup_form').ajaxForm({
dataType: 'json',
success: processJson
});
function processJson(data){
if(data.status == true) { //form submission was successful
//alert(data.message + '/n' + data.status);
... | JavaScript | 0.000001 | @@ -1177,16 +1177,19 @@
imeout:
+600
0, // 0
|
1a3d0116d64172faf741eb1fd4844cc9690e7ed7 | Fix test on node v8 | spec/unit/xlsx/xform/test-xform-helper.js | spec/unit/xlsx/xform/test-xform-helper.js | const {Readable} = require('stream');
const {cloneDeep, each} = require('../../../utils/under-dash');
const CompyXform = require('./compy-xform');
const parseSax = verquire('utils/parse-sax');
const XmlStream = verquire('utils/xml-stream');
const BooleanXform = verquire('xlsx/xform/simple/boolean-xform');
function ge... | JavaScript | 0.000002 | @@ -21,16 +21,25 @@
equire('
+readable-
stream')
|
96610753cfe0b9dd850d7863205f2bfc67ce2686 | change test setup | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
var browsers = [
// chrome
{
browserName: "chrome",
platform: "Windows XP",
version: "26.0"
}, {
browserName: "chrome",
platform: "OS X 10.9",
version: "38.0"
}, {
... | JavaScript | 0.000001 | @@ -2599,34 +2599,36 @@
deviceName: %22iP
-ad
+hone
Simulator%22,%0A
|
898b320d2fac46aaadac9eb9df5b1bd79a426102 | correct grunt test target | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
config: {
sources: 'lib',
tests: 'test',
dist: 'dist'
},
eslint: {
check: {
src: [
... | JavaScript | 0.000005 | @@ -504,36 +504,38 @@
haTest: %7B%0A
-test
+single
: %7B%0A opti
@@ -1354,16 +1354,23 @@
ochaTest
+:single
' %5D);%0A%0A
|
1113b8a14181db4703c8bb0ce98f891ba770f3bc | Make Grunt tasks alphabetical | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bump: {
options: {
files: ['package.json'],
updateConfigs: ['pkg'],
commit: true,
commitMessage: 'Release v%VERSION%',
... | JavaScript | 0.998556 | @@ -598,22 +598,26 @@
-jshint
+cucumberjs
: %7B%0A
@@ -655,20 +655,22 @@
-esversion: 6
+format: 'html'
,%0A
@@ -687,43 +687,76 @@
-reporter: require('jshint-stylish')
+output: 'reports/my_report.html',%0A theme: 'bootstrap'
%0A
@@ -759,33 +759,32 @@
%0A %7D,%... |
21ebc728da11477599b8cda7ce9002ffec3cf950 | change sub-task name in "grunt less" task in Gruntfile.js | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project config
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// start "bowercopy" task
bowercopy: {
// don't send messages to saying that Bower components aren't
// configured...ignore them instead. Also, don't run any bower
// ta... | JavaScript | 0.000007 | @@ -1349,19 +1349,18 @@
-development
+core_build
: %7B%0A
@@ -1410,17 +1410,16 @@
s.css%22:
-%5B
%22css-bui
@@ -1433,17 +1433,16 @@
es.less%22
-%5D
%0A
|
4488b54bdfacd3b61bb48bc67037bb5e2882bd36 | Add karma:debug task to Gruntfile | Gruntfile.js | Gruntfile.js | /*
* @copyright 2015 CoNWeT Lab., Universidad Politécnica de Madrid
* @license Apache v2 (http://www.apache.org/licenses/)
*/
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
isDev: grunt.option('target') === 'release' ? '' : '-dev',
... | JavaScript | 0.000037 | @@ -1921,24 +1921,171 @@
a.conf.js',%0A
+ %7D,%0A%0A debug: %7B%0A configFile: 'karma.conf.js',%0A options: %7B%0A preprocessors: %5B%5D,%0A singleRun: false%0A %7D%0A
%7D%0A
|
6b98e70b9833dc5ea94199cf235d88bded97d8fd | Fix a typo. 'user strict'; => 'use strict'; | Gruntfile.js | Gruntfile.js | /*
* Copyright (c) 2012-2015 S-Core Co., 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... | JavaScript | 0.999999 | @@ -607,17 +607,16 @@
*/%0A%0A'use
-r
strict'
|
a254f196a6136b14b0ad1b9d4c1619389e0cfb40 | Add new resize | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
function getImgRespSizes (sprite) {
var monitors = [
1024,
1152,
1280,
1366, // 487
1400,
1440,
1536,
1600,
1680,
1980
],
proportion = ... | JavaScript | 0.000001 | @@ -60,22 +60,39 @@
pSizes (
-sprite
+exclude2000, proportion
) %7B%0A
@@ -321,77 +321,74 @@
-proportion = sprite ? 0.361 : 0.6639526276831976,%0A result = %5B%5D
+result = %5B%5D;%0A proportion = proportion %7C%7C 0.6639526276831976
;%0A%0A
@@ -399,22 +399,27 @@
if (!
-sprite
+exclude20... |
0f4b7e7bfbae559bf672820972e4f6ff79dcca72 | Fix #462: Prevent user from double-submitting "create variant set from file". | genome_designer/main/static/js/variant_set_list_view.js | genome_designer/main/static/js/variant_set_list_view.js | /**
* @fileoverview List of variant sets.
*/
gd.VariantSetListView = Backbone.View.extend({
el: '#gd-page-container',
initialize: function() {
this.render();
},
render: function() {
$('#gd-sidenav-link-variant-sets').addClass('active');
this.datatableComponent = new gd.DataTableComponent({
... | JavaScript | 0 | @@ -1064,24 +1064,94 @@
unction() %7B%0A
+ $('#gd-variant-set-form-from-file-submit').addClass('disabled');%0A%0A
// We va
|
cd4e8c23567518623e6c99f6e464ac30e6fc26c0 | add bump-commit to release | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
var app = {},
config = {},
tasks = [
'grunt-contrib-jshint',
'grunt-contrib-concat',
'grunt-contrib-jasmine',
'grunt-contrib-watch',
'grunt-contrib-uglify',
'grunt-coveralls',
'grunt-bump',
'grunt-umd'
];
... | JavaScript | 0 | @@ -4052,16 +4052,53 @@
dist');%0A
+ grunt.task.run('bump-commit');%0A
%7D, 0
@@ -4100,16 +4100,17 @@
%7D, 0);%0A
+%0A
// g
|
a980fca4ac601d865249a044e96ad4d0a1d4c617 | Comment out console.log | src/LambdaFunctionPool.js | src/LambdaFunctionPool.js | 'use strict'
const LambdaFunction = require('./LambdaFunction.js')
module.exports = class LambdaFunctionPool {
constructor() {
// key (functionName), value: Set of instances
this._lambdaFunctionPool = new Map()
// start cleaner
this._startCleanTimer()
}
_startCleanTimer() {
// NOTE: don't ... | JavaScript | 0.000001 | @@ -704,32 +704,35 @@
nction%0A
+ //
console.log(idl
@@ -873,24 +873,27 @@
%0A
+ //
console.log
@@ -2049,24 +2049,27 @@
n%0A %7D%0A%0A
+ //
console.log
@@ -2517,24 +2517,27 @@
tion)%0A%0A
+ //
console.log
|
96ebb82bcb2b869a3dcb76a448bf9bf792e1903e | Delete useless empty line | SPAWithAngularJS/module2/providerService/js/app.shoppingListController.js | SPAWithAngularJS/module2/providerService/js/app.shoppingListController.js | // app.shoppingListController.js
(function() {
"use strict";
angular.module("MyApp")
.controller("ShoppingListController", ShoppingListController);
ShoppingListController.$inject = ["ShoppingListService"];
function ShoppingListController(ShoppingListService) {
let list = this;
list.items = Shop... | JavaScript | 0.998532 | @@ -342,17 +342,16 @@
ems();%0A%0A
-%0A
list
|
6eff5cb24110730e4c7814cc93d41fc7db0d3a2e | call method from hedgehog object | src/client/app/blockly/lib/generators/python/hedgehog.js | src/client/app/blockly/lib/generators/python/hedgehog.js | 'use strict';
goog.provide('Blockly.Python.hedgehog');
goog.require('Blockly.Python');
Blockly.Python['hedgehog_scope'] = function(block) {
var statements = Blockly.Python.statementToCode(block, 'IN');
Blockly.Python.definitions_['import_hedgehog'] = 'from hedgehog.client import connect';
var code = 'wi... | JavaScript | 0.000003 | @@ -1912,24 +1912,33 @@
var code = '
+hedgehog.
get_analog('
@@ -2123,16 +2123,24 @@
code = '
+hedgeho.
get_digi
|
a8f8f08b03f7fc2b8aa7fc0f9ddda246a2cecef5 | Remove HMR router hack | src/RootWithIntl.js | src/RootWithIntl.js | import React from 'react';
import PropTypes from 'prop-types';
import Router from 'react-router-dom/Router';
import Switch from 'react-router-dom/Switch';
import { Provider } from 'react-redux';
import { CookiesProvider } from 'react-cookie';
import { HotKeys } from '@folio/stripes-components/lib/HotKeys';
import { con... | JavaScript | 0 | @@ -2072,28 +2072,8 @@
ory%7D
- key=%7BMath.random()%7D
%3E%0A
|
b3c3a328b0e254656e3461f81862f3b67e56335c | Allow embedders to include their own stylesheet. | censusreporter/apps/census/static/js/embed.chart.frame.js | censusreporter/apps/census/static/js/embed.chart.frame.js | function makeEmbedFrame() {
var embedFrame = {
params: {},
data: {},
elements: {}
};
embedFrame.chartSetup = function() {
var match,
search = /([^&=]+)=?([^&]*)/g,
decode = function (s) { return decodeURIComponent(s.replace(/\+/g, " ")); },
... | JavaScript | 0 | @@ -1228,16 +1228,238 @@
inerID)%0A
+%0A // allow embedders to inject their own stylesheet%0A if (embedFrame.params%5B'stylesheet'%5D) %7B%0A $('%3Clink rel=%22stylesheet%22%3E').attr('href', embedFrame.params.stylesheet).appendTo($('head'));%0A %7D%0A%0A
|
b30c8d9a983ce5b9462e90c57ea9dd46d27b17b7 | Send jsQuery ready error message on GET /infowindow errors | lib/cartodb/cartodb_windshaft.js | lib/cartodb/cartodb_windshaft.js |
var _ = require('underscore')
, Step = require('step')
, Windshaft = require('windshaft')
, Cache = require('./cache_validator');
var CartodbWindshaft = function(serverOptions) {
// set the cache chanel info to invalidate the cache on the frontend server
serverOptions.afterTileRender = func... | JavaScript | 0 | @@ -3090,32 +3090,40 @@
res.send(
+%7Berror:
err.message, 500
@@ -3109,32 +3109,33 @@
ror: err.message
+%7D
, 500);%0A
|
c606a7d8c4bd008098e6bda631b13cefe96cc82f | Add new fields and add method to set notification as read | lib/collections/notifications.js | lib/collections/notifications.js | Notifications = new Mongo.Collection('notifications');
// TODO add allow/deny rules
// user is owner of project - deny
// user is not logged in - deny
createRequestNotification = function(request) {
check(request, {
user: Object,
project: Object,
createdAt: Date,
status: String
});
Notification... | JavaScript | 0 | @@ -284,16 +284,33 @@
status:
+ String,%0A _id:
String%0A
@@ -636,20 +636,293 @@
ctId
-%0A %7D%0A %7D);%0A%7D
+,%0A requestId: request._id%0A %7D%0A %7D);%0A%7D;%0A%0AMeteor.methods(%7B%0A setNotificationAsRead: function(notification) %7B%0A check(notification, String);%0A console.log(notifi... |
ed664e1a69e241766848cd628d56f820064c6c19 | remove options from promise launcher | lib/commando/launcher/promise.js | lib/commando/launcher/promise.js | export default PromiseLauncher;
// Create a command launcher with `options`.
function PromiseLauncher(options) {
this.options = options;
}
PromiseLauncher.prototype = {
// Launch the execution of `Command` function. It create the command and wraps it in a Promise.
execute: function(Command, args, options) {
... | JavaScript | 0.000013 | @@ -301,17 +301,8 @@
args
-, options
) %7B%0A
@@ -755,29 +755,8 @@
ver)
-.catch(options.error)
;%0A
|
18a6d79171270f5c38d093a0be9b3dccbd05535f | Fix jshint error | lib/commands/csm/group/group._js | lib/commands/csm/group/group._js | /**
* Copyright (c) Microsoft. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | JavaScript | 0.000006 | @@ -7508,16 +7508,17 @@
rceGroup
+
(resourc
|
46e3b6cdb638afc99472f7ad772085397a7dcce7 | Fix baseline contrast | lib/components/chart/defaults.js | lib/components/chart/defaults.js | const { format } = require('../utils')
module.exports = {
chart: {
backgroundColor: 'transparent',
spacing: [ 0, 12, 0, 12 ],
style: {
fontFamily: 'inherit',
fontSize: '14px'
}
},
loading: {
labelStyle: {
position: 'absolute',
top: '50%',
left: '50%'
},
s... | JavaScript | 0.000008 | @@ -2360,18 +2360,17 @@
255, 0.
-25
+3
)',%0A
@@ -2539,18 +2539,17 @@
255, 0.
-25
+3
)'%0A
|
d9b6d84086f721fd6eed3019bdecd3bc26a909d4 | add all HTTP methods supported by node to the router: | lib/connect/middleware/router.js | lib/connect/middleware/router.js |
/*!
* Ext JS Connect
* Copyright(c) 2010 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var parse = require('url').parse,
querystring = require('querystring');
/**
* Provides Sinatra and Express like routing capabilities.
*
* Examples:
*
* connect.router(function(app){
* app... | JavaScript | 0.000023 | @@ -639,20 +639,66 @@
-post
+%22del%22: method.call(this, 'del'),%0A %22get%22
: method
@@ -710,19 +710,18 @@
(this, '
-pos
+ge
t'),%0A
@@ -729,19 +729,22 @@
-get
+%22head%22
: method
@@ -748,34 +748,82 @@
hod.call(this, '
-ge
+head'),%0A %22post%22: method.call(this, '... |
af72784593016264a89cf55b1656907eb2ecf73a | Add Location to TBC | src/database/DataTypes/TemperatureBreachConfiguration.js | src/database/DataTypes/TemperatureBreachConfiguration.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2020
*/
import Realm from 'realm';
import moment from 'moment';
import { createRecord } from '../utilities';
export class TemperatureBreachConfiguration extends Realm.Object {
/**
* With the provided temperatureLog, determines if the passed location
* ... | JavaScript | 0 | @@ -3354,24 +3354,76 @@
al: true %7D,%0A
+ location: %7B type: 'Location', optional: true %7D,%0A
type: 's
|
d2bfa4fc9abb6b47cd5c2c64652d315e9a0d1699 | Allow setting hide text related css classes on wrapper | app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js | app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js | (function($) {
$.widget('pageflow.hiddenTextIndicator', {
_create: function() {
var parent = this.options.parent,
that = this;
parent.on('pageactivate', function(event) {
that.element.toggleClass('invert', $(event.target).hasClass('invert'));
that.element.toggleClass('hidden... | JavaScript | 0 | @@ -189,24 +189,119 @@
on(event) %7B%0A
+ var pageOrPageWrapper = $(event.target).add('.content_and_background', event.target);%0A%0A
that
@@ -440,39 +440,41 @@
-$(event.target)
+pageOrPageWrapper
.hasClass('h
@@ -533,31 +533,33 @@
-$(event.target)
+pageOrPageWrapper
.hasClas
|
493ace65fe293d1ec1f276afaad3ceab5b3cc81e | improved checking if given image is a canvas | JsBarcode.js | JsBarcode.js | (function($){
JsBarcode = function(image, content, options) {
var merge = function(m1, m2) {
var newMerge = {};
for (var k in m1) {
newMerge[k] = m1[k];
}
for (var k in m2) {
newMerge[k] = m2[k];
}
return newMerge;
};
//Merge the user options with the default
op... | JavaScript | 0.999763 | @@ -523,33 +523,30 @@
jQuery
-selection
+object
%0D%0A%09%09if (
image in
@@ -529,37 +529,38 @@
y object%0D%0A%09%09if (
-image
+canvas
instanceof jQue
@@ -599,25 +599,22 @@
of the
-selection
+object
%0D%0A%09%09%09can
@@ -635,16 +635,22 @@
t(0);%0D%0A%09
+%09%7D%0D%0A%0D%0A
%09%09// che
@@ -737,25 +737,2... |
ea24bbecd53b5d7d415d06714cf318871824235c | Correct copy/paste fail | lib/items/commit-preview-item.js | lib/items/commit-preview-item.js | import React from 'react';
import PropTypes from 'prop-types';
import {Emitter} from 'event-kit';
import {WorkdirContextPoolPropType} from '../prop-types';
import CommitPreviewContainer from '../containers/commit-preview-container';
export default class CommitPreviewItem extends React.Component {
static propTypes =... | JavaScript | 0.000001 | @@ -538,17 +538,8 @@
URI(
-relPath,
work
|
5e7c9cc137aaf8ba821a09b70452261d30043c78 | fix reducer for selected node after delete | src/reducers/pipelineUIReducer.js | src/reducers/pipelineUIReducer.js | import {
UNSELECT_NODE
} from '../actions';
import {
DELETE_NODE,
INSPECT_NODE,
NODE_CHANGED
} from '../larissa/redux/actions';
const defaultState = {
selectedNode: {
node: {}
},
};
export default function (state = defaultState, action) {
switch (action.type) {
case INSPECT... | JavaScript | 0 | @@ -730,24 +730,29 @@
electedNode.
+node.
id === actio
|
5c105d7023debcf2c745836dd0c2ae0f6bc12fe0 | fix for missing airport panel | app/protected/modules/gamification/views/assets/gamification-dashboard.js | app/protected/modules/gamification/views/assets/gamification-dashboard.js | var highestZIndex,
leftAnimation,
animationTime,
easingType,
carouselWidth,
viewfinderWidth,
maxLeft,
maxRight,
myLeft,
fixedStep,
firstVisible,
numPanels,
numToScroll;
function getCurrentVisibleCollections(direction){
if( firstVisible >= 1 && firstVisible <= (numPan... | JavaScript | 0 | @@ -258,16 +258,26 @@
irection
+, firstRun
)%7B%0A i
@@ -346,16 +346,37 @@
oScroll
+%7C%7C firstRun === true
)%7B%0A
@@ -1330,32 +1330,67 @@
- 4;%0A %7D%0A
+ if(firstRun !== true)%7B%0A
$('#gd-c
@@ -1484,24 +1484,34 @@
asingType);%0A
+ %7D%0A
var
@@ -2108,24 ... |
7683ea1bb58a61fc8f64b824b6e9d3b941fd785c | add reset check state after answer | app/scripts/category/alphabet/origin/practice/originpractice.component.js | app/scripts/category/alphabet/origin/practice/originpractice.component.js | 'use strict';
(function () {
// Define the `header` module
var app = angular.module('app.category');
// Register `headerList` component, along with its associated controller and template
app.component('originPractice', {
template: '<div ng-include="$ctrl.templateUrl"></div>',
bindings: {
jsonDat... | JavaScript | 0 | @@ -2665,54 +2665,14 @@
-self.correct = false;%0A self.error = false
+init()
;%0A
@@ -3048,16 +3048,106 @@
false;%0A%0A
+ var init = function() %7B%0A self.correct = false;%0A self.error = false;%0A %7D;%0A%0A
var
@@ -3711,24 +3711,38 @@
rn;%0A %7D%0A
+ init();%0A
... |
c1bc0c32fa688c64754fc590aa12c645785c6d69 | Improve our externs for async. | externs/async.js | externs/async.js | // The subset of the Async API that we use.
var async = {
each: function() {},
every: function() {},
map: function() {},
parallel: function() {},
series: function () {},
waterfall: function () {}
}
| JavaScript | 0 | @@ -1,10 +1,28 @@
/
-/
+**%0A * @fileoverview
The sub
@@ -32,17 +32,17 @@
of the
-A
+a
sync API
@@ -59,29 +59,179 @@
se.%0A
-var async = %7B%0A
+ */%0A%0A/** @type %7BObject%7D */%0Avar async = %7B%7D%0A%0A/**%0A * @param %7BArray%7D arr%0A * @param %7Bfunction(*,function(Error))%7D iterator%0A * @param %7Bfu... |
f1205d44b572d8a9e6044976b13f317076d07004 | create #search function in searchcomponentCtrl | client/app/search/components/searchComponentController.js | client/app/search/components/searchComponentController.js | (function(){
'use strict';
angular.module('topFive.search')
.controller('searchComponentController', searchComponentCtrl);
searchComponentCtrl.$inject = ['searchFactory'];
function searchComponentCtrl(searchFactory){
var vm = this;
vm.options = {
type:'',
query:'',
limit:20
... | JavaScript | 0.000001 | @@ -348,16 +348,223 @@
esults;%0A
+ vm.search = search;%0A%0A function search(options)%7B%0A searchFactory.search(vm.options).then(function(data)%7B%0A console.log('search results', data);%0A // vm.onSearch(data);%0A %7D);%0A %7D%0A%0A
%0A fun
|
4ab11c13ee5f65b13779834280c12594bd56fdc3 | version JS changes in webpack | pkg/interface/config/webpack.prod.js | pkg/interface/config/webpack.prod.js | const path = require('path');
// const HtmlWebpackPlugin = require('html-webpack-plugin');
// const { CleanWebpackPlugin } = require('clean-webpack-plugin');
module.exports = {
mode: 'production',
entry: {
app: './src/index.js'
},
module: {
rules: [
{
test: /\.(j|t)sx?$/,
use: {
... | JavaScript | 0 | @@ -1497,38 +1497,21 @@
dex.
-js',%0A chunkFilename: 'index
+%5Bcontenthash%5D
.js'
|
922888db6e3fc5debe3dc4a823ad64da61f69056 | put extra resource to terminal if possible | src/action/store.js | src/action/store.js | let mod = new ActionObj('Store');
module.exports = mod;
const targetInitFunc = function(creep) {
const storage = Game.rooms[creep.memory.homeRoom].storage;
if(storage) {
return storage;
} else {
const keepers = _.filter(creep.room.cachedFind(FIND_MY_CREEPS), c => c.memory.role === C.KEEPER)... | JavaScript | 0.000001 | @@ -162,44 +162,254 @@
-if(storage) %7B%0A return storage
+const terminal = Game.rooms%5Bcreep.memory.homeRoom%5D.terminal;%0A if(storage && _.sum(storage.store)%3Cstorage.storeCapacity) %7B%0A return storage;%0A %7D else if(terminal && _.sum(terminal.store)%3Cterminal.storeCapacity) %7B%0A ... |
6961e6e10eb4190a715bc9dfc05065d2f2ceeeeb | remove comments | modules/client/app/tasks/tasks.controller.js | modules/client/app/tasks/tasks.controller.js | 'use strict';
import angular from 'angular';
import $ from 'jquery';
let ipc = require('ipc');
const index = {
'folderList': '.row > .col-md-6:first-child > ul',
'taskList': '.row > .col-md-6:nth-child(2) > ul',
'editTaskBody': '#editTaskModal > .modal-dialog > .modal-content > .container-fluid > .row > .modal-b... | JavaScript | 0 | @@ -598,69 +598,8 @@
) %7B%0A
- console.log('Got the tasks!');%0A console.log(res);%0A
@@ -655,41 +655,8 @@
();%0A
- console.log($scope.tasks);%0A
|
4dd6869c15e872103f7e2cc9f82fb88dae68c474 | fix exception in mobile safari's private browsing mode | src/adapters/dom.js | src/adapters/dom.js | /**
* dom storage adapter
* ===
* - originally authored by Joseph Pecoraro
*
*/
//
// TODO does it make sense to be chainable all over the place?
// chainable: nuke, remove, all, get, save, all
// not chainable: valid, keys
//
Lawnchair.adapter('dom', (function() {
var storage = window.localStorage
... | JavaScript | 0.000005 | @@ -1913,24 +1913,481 @@
n !!storage
+&& function() %7B%0A // in mobile safari if safe browsing is enabled, window.storage%0A // is defined but setItem calls throw exceptions.%0A var success = true%0A var value = Math.random()%0A try %7B%0A ... |
1733bac3bbf6612dc9697ac028676b04d05b51a4 | move chokidar to top | bin/6to5/dir.js | bin/6to5/dir.js | var chokidar = require("chokidar");
var outputFileSync = require("output-file-sync");
var path = require("path");
var util = require("./util");
var fs = require("fs");
var _ = require("lodash");
module.exports = function (commander, filenames, opts) {
if (commander.... | JavaScript | 0 | @@ -1,46 +1,4 @@
-var chokidar = require(%22chokidar%22);%0A
var
@@ -39,24 +39,66 @@
ile-sync%22);%0A
+var chokidar = require(%22chokidar%22);%0A
var path
|
a64db43bc862401070e52953226644a307cf6670 | switch to a new Transitland Google Analytics id | config/environment.js | config/environment.js | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'mobility-playground',
environment: environment,
baseURL: '/',
location: '#',
transitlandDatastoreHost: 'https://transit.land',
EmberENV: {
FEATURES: {
// Here you can enable experimental ... | JavaScript | 0 | @@ -1219,18 +1219,19 @@
'UA-
-47035811-1
+113349190-2
'%0A
|
c0fd909ac0a8de44c28b8bfa7eab920284243555 | Change number of default letter Resolves: ADWD-1990 | config/environment.js | config/environment.js | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'leibniz-frontend',
environment: environment,
baseURL: '/',
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "*",
'font-src': "'self'",
'connect-src': "*",
'img-src'... | JavaScript | 0.000024 | @@ -483,17 +483,17 @@
D: 'l371
-7
+4
', // TO
|
59af6cbb4e9f782eccd1e0389cfe66021022d987 | Remove redundant definitions. | src/api/property.js | src/api/property.js | import dashCase from '../util/dash-case';
import data from '../util/data';
import emit from '../api/emit';
// TODO Decouple boolean attributes from the Boolean function.
// TODO Split apart createNativePropertyDefinition function.
function getLinkedAttribute (name, attr) {
return attr === true ? dashCase(name) : at... | JavaScript | 0.000509 | @@ -888,108 +888,8 @@
%7B%7D;
-%0A info.removeAttribute = elem.removeAttribute;%0A info.setAttribute = elem.setAttribute;
%0A%0A
|
995d6378f32587ae8e36d5a119a176a9480e77fa | create `ENV` with mirage enabled | config/environment.js | config/environment.js | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
rootURL: '/',
locationType: 'auto',
modulePrefix: 'irene',
environment: environment,
pusherKey: "216d53b13aaa5c6fc2cf",
deviceFarmSsl: false,
deviceFarmHost: "devicefarm.appknox.com",
deviceFarmPor: "8080",
... | JavaScript | 0 | @@ -2890,16 +2890,189 @@
%7D;%0A %7D
+%0A%0A if (environment === 'yashwin') %7B%0A ENV%5B'ember-cli-mirage'%5D = %7B%0A enabled: true%0A %7D;%0A ENV%5B'namespace'%5D = %22api-v2%22;%0A ENV%5B'host'%5D = %22http://0.0.0.0:8000%22;%0A %7D
%0A retur
|
34eb1f59e76d5da7dab68cc7cca504e5b953e208 | Add unit test for refill bucket | test/limiter.js | test/limiter.js | var expect = require('chai').expect,
epsilonDelta = require('../lib/limiter');
describe('limiter', function () {
describe('rate', function () {
it('should correctly rate limit a user', function (done) {
var limiter = epsilonDelta({
capacity: 10, // 100 requests
});
var username = 'som... | JavaScript | 0 | @@ -72,16 +72,51 @@
imiter')
+,%0A MockDate = require('mockdate');
;%0A%0Adescr
@@ -974,24 +974,623 @@
%7D);%0A %7D);
+%0A%0A it('should correctly refill bucket', function (done) %7B%0A MockDate.set(10000);%0A var limiter = epsilonDelta(%7B%0A capacity: 10, // 100 requests,%0A expire:... |
74465a557f683bcd1d0a7e747ba0329dc9d4bf3e | use https; | config/environment.js | config/environment.js | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'wordset',
environment: environment,
baseURL: '/',
locationType: 'auto',
apiPrefix: 'api/v1',
posList: ["adv", "adj", "verb", "noun", "conj", "pronoun", "prep"],
EmberENV: {
FEATURES: {
... | JavaScript | 0 | @@ -2060,24 +2060,25 @@
Host = 'http
+s
://api.words
|
0282e3950d000aef035de85a1a7211554f81d207 | Fix date range filter | src/assetFilters.js | src/assetFilters.js | import distance from "@turf/distance";
import booleanPointInPolygon from "@turf/boolean-point-in-polygon";
import { isEmpty } from "./utils";
import { GeoListenMode } from "./mixer";
export const ASSET_PRIORITIES = Object.freeze({
DISCARD: false,
NEUTRAL: 0,
LOWEST: 1,
NORMAL: 100,
HIGHEST: 999,
});
const a... | JavaScript | 0.000002 | @@ -6104,31 +6104,30 @@
_PRIORITIES.
-NEUTRAL
+LOWEST
;%0A %7D%0A%7D;%0A%0Aex
|
322f73fcacc29a6063d2f8e0c0dba7be017221c5 | Use triple equals | scripts/pi-hole/js/db_lists.js | scripts/pi-hole/js/db_lists.js | /* Pi-hole: A black hole for Internet advertisements
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
/*global
moment
*/
var start__ ... | JavaScript | 0.000003 | @@ -3827,32 +3827,33 @@
sStillLoading ==
+=
0)%0A
|
5bbdc1e2a83673fcfad239e7683da9298da39a65 | fix demo | demo/main.js | demo/main.js | ;(function() {
'use strict';
var schemaUrlForm = document.getElementById('schema-url-form');
var schemaUrlInput;
var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
url = window.__REDOC_DEV__ ? url : '\\\\cors.apis.guru/' + url;
d... | JavaScript | 0.000001 | @@ -1883,19 +1883,16 @@
');%0A%0A
- //
$specIn
@@ -1946,19 +1946,16 @@
e) %7B%0A
- //
schem
@@ -1991,19 +1991,16 @@
lue;%0A
- //
locat
@@ -2089,19 +2089,16 @@
ue);%0A
- //
%7D);%0A%0A
|
89a2f72bf0ee4a4c68e7cc16319a177a4ef03ae1 | fix on demo js | demo/myjs.js | demo/myjs.js | (function ($, window, document, undefined) {
'use strict';
$('#cont1').ScrollSubMenu();
$('#cont2').ScrollSubMenu({
animEnterFn: function(){
this.menu.wrapper.css({display:'block'}).find('li').each(function(i){
var el = $(this).css({marginLeft:'-100%', opacity:0});
setTimeout(function... | JavaScript | 0 | @@ -478,37 +478,90 @@
Fn: function()%7B%0A
+%0A
+ var $wrapper = this.menu.wrapper;%0A var $list =
this.menu.wrapp
@@ -565,32 +565,48 @@
apper.find('li')
+;%0A%0A $list
.each(function(i
@@ -748,16 +748,16 @@
acity:0%0A
-
@@ -759,32 +759,134 @@
%7D, 100);%0A
+%0A if ( ... |
89d81fd8029a622fd00a7064526984c02b29eee0 | Use .info and fix bug with db queries | CachedOpenWeatherAPI.js | CachedOpenWeatherAPI.js | var weather = require('openweathermap')
var db = null;
var city_id = 0;
// http://api.openweathermap.org/data/2.5/forecast?id=2643123&mode=json&appid=
// f3794e46bd7505e6a7746cb0379550ed
// http://bugs.openweathermap.org/projects/api/wiki/Weather_Condition_Codes
exports.config = function(weather_config, city, databas... | JavaScript | 0 | @@ -1294,19 +1294,20 @@
console.
-log
+info
(%22Not up
@@ -1313,16 +1313,24 @@
pdating
+weather
as we ha
@@ -1870,17 +1870,18 @@
tHourly
-%3C
+%3E=
timesta
@@ -2340,32 +2340,115 @@
ion(err, res) %7B%0A
+ if(err) %0A console.warn(%22While searching hourly weather: %22, err)%0A
callb... |
60c5a8561081cbca9fec481593f2641576967695 | Fix condition | src/RedaxtorCodemirror.js | src/RedaxtorCodemirror.js | import React, {Component} from "react"
import Codemirror from 'react-codemirror'
import {html as html_beautify} from 'js-beautify'
import Modal from 'react-modal'
require('codemirror/mode/htmlmixed/htmlmixed');
export default class CodeMirror extends Component {
constructor(props) {
super(props);
... | JavaScript | 0.000001 | @@ -2445,61 +2445,242 @@
r =
-React.createElement(this.props.wrapper, %7B%7D);%0A
+null;%0A%0A if(this.state.sourceEditorActive %7C%7C !this.props.node)%7B%0A //if there is no this.props.node, it means this component is invoked manually with custom html directly in props and should be just rendered%... |
bf2c1b5f09c348f172846087db10344f53bd3c44 | Read note on and control change events from MIDI input | js/MidiInput.js | js/MidiInput.js | var MidiInput = function() {
this.init = function(visualizer) {
this.visualizer = visualizer;
if (navigator.requestMIDIAccess) {
navigator.requestMIDIAccess().then(onMidiSuccess, onMidiReject);
} else {
console.log('No MIDI support: navigator.requestMIDIAccess is not defined');
}
};
... | JavaScript | 0 | @@ -189,16 +189,27 @@
iSuccess
+.bind(this)
, onMidi
@@ -217,16 +217,16 @@
eject);%0A
-
%7D el
@@ -445,37 +445,938 @@
-console.log('MIDI init ok!');
+if (midi.inputs.size %3E 0) %7B%0A // Get first MIDI device%0A var input = midi.inputs.values().next().value;%0A console.log('MIDI device fou... |
e28ce79a95ce5983a97d5bc24dd5600e9d1d1c1e | make createTickMarkNode private | js/RulerNode.js | js/RulerNode.js | // Copyright 2002-2013, University of Colorado Boulder
/**
* Visual representation of a ruler.
* Lots of options, see default options in constructor.
*
* @author Chris Malley (PixelZoom, Inc.)
*/
define( function( require ) {
'use strict';
// imports
var assert = require( 'ASSERT/assert' )( 'scenery-phet' ... | JavaScript | 0.000001 | @@ -3751,33 +3751,24 @@
rTickNode =
-thisNode.
createTickMa
@@ -4084,25 +4084,16 @@
kNode =
-thisNode.
createTi
@@ -5107,28 +5107,12 @@
/%0A
-RulerNode.prototype.
+var
crea
|
bd656afc105ea02a5a424011d3cd3b7458f4d38a | convert _.extend to PHET_CORE/merge, https://github.com/phetsims/phet-core/issues/71 | js/StatusBar.js | js/StatusBar.js | // Copyright 2018-2019, University of Colorado Boulder
/**
* Base type for the status bar that appears at the top of games.
* The base type is primarily responsible for resizing and 'floating' the bar.
*
* @author Chris Malley (PixelZoom, Inc.)
*/
define( require => {
'use strict';
// modules
const inherit... | JavaScript | 0.004581 | @@ -344,24 +344,70 @@
inherit' );%0A
+ const merge = require( 'PHET_CORE/merge' );%0A
const Node
@@ -964,16 +964,13 @@
s =
-_.extend
+merge
( %7B%0A
|
59d4d3ab0a4ecd4de8a5b25d5ee4c648643ad254 | Update urlparam-proc.js | inc/urlparam-proc.js | inc/urlparam-proc.js | //Processamento de parâmentros via URL
//Se foi solicitado marcador no mapa
if (mrgMarkerLatLonByURL !=null){
if (!mrgMapOnClickAddLock){
mrgMapOnClickAddLock = true;
mrgUserTempMarker.setLatLng(mrgMarkerLatLonByURL);
map.setView(mrgMarkerLatLonByURL, 18);
var Msg = TempMarkerMsg(mrgMarkerLatLonByURL[... | JavaScript | 0.000001 | @@ -664,16 +664,27 @@
jesus','
+paroquia','
Par%C3%B3quia
|
c36adec51c8a603dbd37166e6e1ff6536f62bf80 | add logging to npm start | dev/start.js | dev/start.js | 'use strict';
const WebpackDevServer = require('webpack-dev-server');
const webpack = require('webpack');
const metalsmith = require('./metalsmith');
const Logger = require('./logger');
const watch = require('./watch');
const webpackConfig = require('../webpack.config');
function serv() {
return new Promise(resol... | JavaScript | 0.000001 | @@ -283,24 +283,79 @@
n serv() %7B%0A%0A
+ Logger.info('Starting webpack development server');%0A%0A
return new
@@ -826,23 +826,44 @@
ger.ok('
-webpack
+Finished webpack development
server'
|
b7ee56e260830c5e8c2edc45e4b5f5552b0e298c | fix interceptor to account for NULL messages | irods-cloud-frontend/app/components/httpInterceptors.js | irods-cloud-frontend/app/components/httpInterceptors.js | /**
*
* Defines interceptors for auth and error handling with the REST back end
* Created by mikeconway on 3/7/14.
*
*
*/
angular.module('httpInterceptorModule', []).factory('myHttpResponseInterceptor', ['$q', '$location', '$log', 'MessageService', 'globals', function ($q, $location, $log, MessageService, global... | JavaScript | 0 | @@ -2884,16 +2884,31 @@
if (!msg
+ %7C%7C msg == null
) %7B%0A
|
e8de9c7916e121cad3a0bbb11ad3c3dcc57291b7 | Move Blur handling into InitScripts.js | DistFiles/factoryCollections/InitScripts.js | DistFiles/factoryCollections/InitScripts.js | //Run any needed functions here:
jQuery(document).ready(function () {
//Apply overflow handling to all textareas
jQuery("textarea").each(function(){ jQuery(this).SignalOverflow() } );
//Other needed functions:
//...
//...
}); | JavaScript | 0.000001 | @@ -63,16 +63,20 @@
on () %7B%0A
+%0A%0A
//Appl
@@ -112,16 +112,18 @@
xtareas%0A
+
jQuery
@@ -148,18 +148,20 @@
function
+
()
+
%7B jQuery
@@ -189,13 +189,181 @@
() %7D
-
);%0A%0A
+ //make textarea edits go back into the dom (they were designed to be POST'ed via forms)%0A jQuery(%22textarea%22... |
e44eb0b078fe7d0610c00a5c63b165f2ed31039f | Update component ErrorList | src/common/components/utils/ErrorList.js | src/common/components/utils/ErrorList.js | import React from 'react';
import { connect } from 'react-redux';
import Grid from 'react-bootstrap/lib/Grid';
import Errors from '../../constants/Errors';
import { removeError } from '../../actions/errorActions';
let ErrorList = ({ errors, dispatch }) => (
<Grid>
{errors.map((error) => (
<div
key=... | JavaScript | 0 | @@ -104,16 +104,63 @@
/Grid';%0A
+import Alert from 'react-bootstrap/lib/Alert';%0A
import E
@@ -255,16 +255,443 @@
ions';%0A%0A
+function renderMeta(error) %7B%0A let messages = %5B%5D;%0A if (error.code === Errors.STATE_PRE_FETCHING_FAIL.code) %7B%0A messages.push(error.meta.detail);%0A %7D%0A if (error.met... |
6c16eaffd7f32254708f4848669e411ba71f0024 | Remove console log | src/legacy/js/functions/_externalLinkAccordionSection.js | src/legacy/js/functions/_externalLinkAccordionSection.js | /**
* Manages links
* @param collectionId
* @param data
* @param field - JSON data key
* @param idField - HTML id for the template
*/
function renderExternalLinkAccordionSection(collectionId, data, field, idField) {
console.log(collectionId, data, field, idField);
var list = data[field];
var dataTemp... | JavaScript | 0.000002 | @@ -220,61 +220,8 @@
) %7B%0A
- console.log(collectionId, data, field, idField);%0A
|
d91e43a273e0ff0ed0080edf89ae32cc9b67d476 | Fix Facebook mobile social login and comment React Native recommended usage | src/common/lib/redux-firebase/actions.js | src/common/lib/redux-firebase/actions.js | import mapAuthToUser from './mapAuthToUser';
export const REDUX_FIREBASE_LOGIN_ERROR = 'REDUX_FIREBASE_LOGIN_ERROR';
export const REDUX_FIREBASE_LOGIN_START = 'REDUX_FIREBASE_LOGIN_START';
export const REDUX_FIREBASE_LOGIN_SUCCESS = 'REDUX_FIREBASE_LOGIN_SUCCESS';
export const REDUX_FIREBASE_OFF_QUERY = 'REDUX_FIREBAS... | JavaScript | 0 | @@ -1326,16 +1326,168 @@
AUTH';%0A%0A
+// Doesn't work on React Native, because there is no window nor redirect.%0A// Use React Native Facebook login component with authWithOAuthToken instead.%0A
async fu
@@ -1562,17 +1562,16 @@
'email,
-
user_fri
@@ -1787,24 +1787,80 @@
AILABLE') %7B%0A
+ // Pass an empty ... |
f5c6b7e79d4806685e8d10a9b7a85a0b6601a137 | add support for 'xml' conform type | test/sources.js | test/sources.js | var test = require('tape').test,
glob = require('glob'),
fs = require('fs');
var manifest = glob.sync('sources/*.json');
var index = 0;
checkSource(index);
function validateJSON(body) {
try {
var data = JSON.parse(body);
return data;
} catch(e) {
return null;
}
}
function... | JavaScript | 0.000001 | @@ -3226,16 +3226,23 @@
geojson'
+, 'xml'
%5D.indexO
|
6216220c933e54df96a2e5bed7e320d93c195522 | add docstring to classify method | jssnips/math_numbers/perfect-numbers/perfect-numbers.js | jssnips/math_numbers/perfect-numbers/perfect-numbers.js | class PerfectNumbers{
/**
* Classifies numbers to either perfect, abundant or deficient base on their
aliquot sum
@param {Number} number to classify
@returns {String} whether the number is perfect, abundant or deficient
*/
classify(number){
if(number <= 0){
return "Classification is only possib... | JavaScript | 0.000015 | @@ -722,16 +722,346 @@
uot sum%0A
+ This speeds up the process by checking if the number is odd/even%0A Odd numbers don't need to be checked against each number like evens do. Odd numbers can be checked%0A against every other number.%0A There is not need to check beyond half the given number as nothing beyond half... |
d6e44c75ac3c2de2a74d5ddd64caae9054694cdb | Add function to switch html.color-- class based on header-archive hovers | assets/js/main.js | assets/js/main.js | /**
* main.js
*
* Author: Marian Friedmann
*
*/
/**
* Disqus function makes it possible to work with the
* disqus comment count.
*
*/
var Disqus = function() {
var data = true,
_self = this;
this.options = {};
this.options.cache = 120 * 1000;
};
/**
* Set data
*
* @param {object} data disq... | JavaScript | 0.000001 | @@ -4331,16 +4331,204 @@
qus();%0A%0A
+ $('a%5Bdata-page-color%5D').hover(function() %7B%0A var color = $(this).attr('data-page-color');%0A $('html').removeClassPrefix('color--');%0A $('html').addClass('color--' + color);%0A %7D);%0A%0A
test.r
|
c78bbbe75e3824477fb89eff57152e21eaaa80cd | Fix failing creation of a booking | indico/modules/rb_new/client/js/containers/BookRoomModal.js | indico/modules/rb_new/client/js/containers/BookRoomModal.js | /* This file is part of Indico.
* Copyright (C) 2002 - 2018 European Organization for Nuclear Research (CERN).
*
* Indico is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 3 of the
* License... | JavaScript | 0.000002 | @@ -1579,16 +1579,17 @@
timeSlot
+%7D
, room:
@@ -1597,17 +1597,16 @@
oomData%7D
-%7D
) =%3E %7B%0A
|
fcb68da317bc75ac282203d62fd128008df7cb45 | fix popup position | assets/js/main.js | assets/js/main.js | $(document).ready(function() {
// left: 37, up: 38, right: 39, down: 40,
// spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36
var keys = {
37: 1,
38: 1,
39: 1,
40: 1
};
function preventDefault(e) {
e = e || window.event;
if (e.preventDefault) {
e.preventDefault();
}
... | JavaScript | 0.000002 | @@ -1297,16 +1297,13 @@
': '
-absolute
+fixed
',%0A
|
116ac14f2c9166e2c1c8020c99dbd1ea900e7fd7 | add our url-root to hivemind | dev/js/hivemind.js | dev/js/hivemind.js | /*global module */
'use strict';
module.exports = (function() {
var Backbone = require('backbone');
var $ = Backbone.$ = require('jquery-browserify');
var Dust = require('../../build/js/dust_templates.js')();
var Env_config = require('./config');
var Model = new Backbone.Model.extend({
});
... | JavaScript | 0 | @@ -295,32 +295,83 @@
.Model.extend(%7B%0A
+ urlRoot: EnvConfig.DATA_STORE + 'content',%0A
%7D);%0A%0A var
|
3c26119632381f8f8c79be0a9f75dcd46d0f0ef4 | Fix bug student model | src/server/models/lophoc-model.js | src/server/models/lophoc-model.js | import { sequelize, Sequelize } from './index';
import Khoi from './khoi-model';
import NamHoc from './namhoc-model';
const LopHoc = sequelize.define('M_LOP_HOC', {
maLop_pkey: {
type: Sequelize.INTEGER,
primaryKey: true,
notNull: true,
autoIncrement: true,
field: 'MA_LOP_P... | JavaScript | 0.000001 | @@ -1164,36 +1164,38 @@
opHoc.belongsTo(
-Khoi
+NamHoc
, %7B foreignKey:
@@ -1198,38 +1198,38 @@
ey: 'maNamHoc',
-source
+target
Key: 'namHoc_pke
|
102e8120046d6a39aa0db05961288fec320eb3f3 | Add tests for upload-validation-active helper. | tests/unit/helpers/upload-validation-active-test.js | tests/unit/helpers/upload-validation-active-test.js |
import { uploadValidationActive } from 'preprint-service/helpers/upload-validation-active';
import { module, test } from 'qunit';
module('Unit | Helper | upload validation active');
// Replace this with your real tests.
test('it works', function(assert) {
var editMode = true;
var nodeLocked = true;
var h... | JavaScript | 0 | @@ -182,60 +182,48 @@
);%0A%0A
-// Replace this with your real tests.%0Atest('it works
+test('edit mode upload validation active
', f
@@ -409,17 +409,798 @@
ert.
-ok(result
+equal(result, true);%0A%7D);%0A%0Atest('edit mode upload validation not active', function(assert) %7B%0A var editMode = true;%0A var node... |
46bbb266b572b37023c0cea5daa6581672b5ef7f | Update fileManager.js | lib/FileManager/fileManager.js | lib/FileManager/fileManager.js | /**
* fileManager.js
* Andrea Tino - 2015
*/
/**
* Handles files.
* We create a shadow file in order to store escaped source Javascript
* so that we can call the parser on that file.
*/
module.exports = function(fpath) {
var fs = require('fs');
var path = require('path');
var text = require('../text.js... | JavaScript | 0.000001 | @@ -540,13 +540,8 @@
lve(
-'/',
p);
@@ -564,16 +564,25 @@
malized
+absolute
path%0A %7D
|
6e628a6fd337700f4219469e3ec16f360dd08745 | Add ALT eraser | censored.js | censored.js | ;(function(global) {
'use strict';
function Censored(el) {
var md = false;
var er = false;
var img = document.getElementById(el);
img.onload = function() {
var wrapper = document.createElement('div');
wrapper.style.position = 'relative'
var parent = img.parentNode;
parent... | JavaScript | 0.000001 | @@ -1951,24 +1951,233 @@
%0A %7D);%0A%0A
+ document.addEventListener('keydown', function(e) %7B%0A if (e.altKey) %7B%0A er = true;%0A %7D%0A %7D);%0A%0A document.addEventListener('keyup', function(e) %7B%0A er = false;%0A %7D);%0A%0A
%7D;%0A%0A %7D%0A
|
ba26d751b7467eda5e630f659f4836a4c2441023 | improve stream preload state | src/components/VideoPlayer/MP4/Stream.js | src/components/VideoPlayer/MP4/Stream.js | import React from 'react';
import PropTypes from 'prop-types';
import DropdownPanel from '../../utils/DropdownPanel.js'
export default class PlayerStream extends React.Component {
render() {
const { player, loadedmetadata } = this.props
if (loadedmetadata) {
return (
<D... | JavaScript | 0.000001 | @@ -179,16 +179,129 @@
%7B%0A%0A
+shouldComponentUpdate(newProps,newState) %7B%0A return (newProps.loadedmetadata && newProps.player)%0A %7D%0A
render()
@@ -329,24 +329,8 @@
ayer
-, loadedmetadata
%7D =
@@ -353,30 +353,22 @@
if (
-loadedmetadata
+player
) %7B%0A
@@ -863,32 +863,30 @@
... |
4abe722d783edd627a8c237811d6be3bdaf06488 | add real description | gatsby-config.js | gatsby-config.js | module.exports = {
siteMetadata: {
title: 'Thibault Friedrich',
description: 'PROJECT_DESCRIPTION.',
author: 'Thibault Friedrich <thibault.friedrich@gmail.com>',
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
... | JavaScript | 0.000508 | @@ -85,27 +85,57 @@
n: '
-PROJECT_DESCRIPTION
+My portfolio to show you my projects, my missions
.',%0A
|
2647c886bbff161544e8a825d828e94a865ff5cd | Remove st-required class from quote block citations | src/blocks/quote.js | src/blocks/quote.js | "use strict";
/*
Block Quote
*/
var _ = require('../lodash');
var Block = require('../block');
var stToHTML = require('../to-html');
var ScribeHeadingPlugin = require('./scribe-plugins/scribe-heading-plugin');
var ScribeQuotePlugin = require('./scribe-plugins/scribe-quote-plugin');
var template = _.template([
'... | JavaScript | 0 | @@ -630,28 +630,16 @@
-string
-st-required
js-cite-
|
0ec8469c017bbaa51f03fba7a3053a1dc17d1b2c | Simplify color method to arrow function | kitsune/kpi/static/kpi/js/components/Chart.es6.js | kitsune/kpi/static/kpi/js/components/Chart.es6.js | /* globals d3:false, $:false, _:false */
/* jshint esnext: true */
export default class Chart {
constructor($container, options) {
let defaults = {
chartColors: ['#EE2820', '#F25743', '#F58667', '#F9B58B', '#FDE4AF', '#E3F1B6', '#AADA9F', '#72C489', '#39AD72', '#00975C'],
axes: {
xAxis: {
... | JavaScript | 0.000113 | @@ -4364,27 +4364,22 @@
'fill',
-function
(d)
+ =%3E
%7B%0A
|
1f4b2607cca815ffb72f3e6e37af06202c6facc2 | Replace flatMap method with reduce and map | bin/test_api.js | bin/test_api.js | /**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
const cp = require('child_process');
const path = require('path');
// Add `out` to the NODE_PATH so absolute paths can be resolved.
const env = { ...process.env };
env.NODE_PATH = path.resolve(__dirname, '../out');
let testFile... | JavaScript | 0.000001 | @@ -523,13 +523,9 @@
')).
-flatM
+m
ap(a
@@ -545,16 +545,63 @@
it('='))
+.reduce((arr, val) =%3E arr.concat(%5B...val%5D, %5B%5D))
;%0A cons
|
1bbc1d44628b15771fbbd0627a8a9180e2394234 | update schema | schema.js | schema.js | (function() {'use strict';})();
// model dependencies and connection instance
var Sequelize = require('sequelize'),
uri = "postgres://postgres:ALMIGHTY@localhost/ubuntu",
db = new Sequelize(uri);
// define the model for users
var User = db.define("User", {
firstName: {
type: Sequelize.STRING,
... | JavaScript | 0.000001 | @@ -257,20 +257,16 @@
ser%22, %7B%0A
-
%0A f
|
7fd30719a70ce123d3e1ef5e3db18b107ad79ee5 | Add file API check | Kinect2Scratch.js | Kinect2Scratch.js | (function(ext) {
// Cleanup function when the extension is unloaded
ext._shutdown = function() {};
// Status reporting code
// Use this to report missing hardware, plugin or unsupported browser
ext._getStatus = function() {
return {status: 2, msg: 'Ready'};
};
// Block... | JavaScript | 0.000001 | @@ -255,41 +255,304 @@
-return %7Bstatus: 2, msg: 'Ready'%7D;
+// Check for the various File API support.%0A if (window.File && window.FileReader && window.FileList && window.Blob) %7B%0A return %7Bstatus: 2, msg: 'Ready'%7D; %0A %7D else %7B%0A return %7Bstatus: 1, msg: 'Th... |
5749e2e6620766929dd02fb79038ff1867e9b682 | fix linter errors | src/components/dropdown/dropdown.spec.js | src/components/dropdown/dropdown.spec.js | import { loadFixture, testVM } from '../../../tests/utils'
describe('dropdown', async () => {
beforeEach(loadFixture(__dirname, 'dropdown'))
testVM()
it('should work', async () => {
const { app: { $refs } } = window
const dds = Object.keys($refs).map(ref => $refs[ref])
dds.forEach(dd => {
exp... | JavaScript | 0.000011 | @@ -518,33 +518,66 @@
%7B dd_5 %7D = $refs
+ // eslint-disable-line camelcase
%0A
-
%0A expect(dd_5
@@ -1543,32 +1543,65 @@
%7B dd_7 %7D = $refs
+ // eslint-disable-line camelcase
%0A%0A const togg
@@ -1927,32 +1927,65 @@
%7B dd_8 %7D = $refs
+ // eslint-disable-line camelcase
%0A%0A const togg
@@ -2680... |
dfad7ad6785566bc9ceae50d706ef1f3108d5927 | update booking order | src/garment-master-plan/booking-order-validator.js | src/garment-master-plan/booking-order-validator.js | require("should");
var validatorItems = require('./booking-order-item-validator');
module.exports = function (data) {
data.should.not.equal(null);
data.should.instanceOf(Object);
data.should.have.property('code');
data.code.should.be.String();
data.should.have.property('bookingDate');
dat... | JavaScript | 0 | @@ -1027,32 +1027,34 @@
(Boolean);%0A%0A
+//
data.should.have
@@ -1069,24 +1069,48 @@
y('items');%0A
+ if(data.items)%7B%0A
data.ite
@@ -1138,20 +1138,25 @@
Array);%0A
+%0A
+
for (var
@@ -1186,16 +1186,20 @@
+
+
validato
@@ -1212,16 +1212,26 @@
(item);%0A
+ %7D%0A
... |
07aaf7df4bd3ce607dc5209dd888385f77b96b92 | refactor app playbook command | scripts/setup-apps.js | scripts/setup-apps.js | var sarah_root = '/etc/SARAH/',
app_root = 'www/apps/',
// app_root_exist = ,
sh = require('execSync'), // executing system commands
clc = require('cli-color'), // colours in the console
fs = require('fs'), // for file streams
fs_filename = "registered.php",
DB_CONFIG = JSON.parse(fs.re... | JavaScript | 0.000005 | @@ -2592,34 +2592,66 @@
.log (sh.exec (%22
-cd
+ansible-playbook -i %5C%22localhost,%5C%22
%22 + sarah_root
@@ -2678,47 +2678,9 @@
+ %22
- && ansible-playbook -i %5C%22localhost,%5C%22
+/
play
|
7fb0032f9d92a91bf3bdccd334584ac50b275637 | Set crossorigin on font preload | gatsby-config.js | gatsby-config.js | module.exports = {
siteMetadata: {
title: "Jesse B. Hannah",
},
plugins: [
"gatsby-plugin-emotion",
{
resolve: "gatsby-plugin-html-attributes",
options: {
lang: "en",
},
},
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-plugin-typography",
options: {... | JavaScript | 0 | @@ -1129,32 +1129,45 @@
; type=font/woff
+; crossorigin
%22,%0A %22Li
@@ -1236,32 +1236,45 @@
type=font/woff2
+; crossorigin
%22,%0A %22Li
@@ -1336,32 +1336,45 @@
; type=font/woff
+; crossorigin
%22,%0A %22Li
@@ -1438,32 +1438,45 @@
type=font/woff2
+; crossorigin
%22,%0A %2... |
8988852eb8bbd57cc52aa40ec19f02c41fd11367 | correct maths in updated portal weakness - oops | plugins/show-portal-weakness.user.js | plugins/show-portal-weakness.user.js | // ==UserScript==
// @id iitc-plugin-show-portal-weakness@vita10gy
// @name IITC plugin: show portal weakness
// @category Highlighter
// @version 0.7.2.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
... | JavaScript | 0 | @@ -1264,20 +1264,16 @@
a.health
-/100
;%0A%0A v
@@ -1275,24 +1275,24 @@
var
-weakness
+strength
= (res_
@@ -1334,24 +1334,24 @@
%0A if(
-weakness
+strength
%3C 1) %7B%0A
@@ -1375,24 +1375,28 @@
acity =
-weakness
+(1-strength)
*.85 + .
@@ -1428,63 +1428,8 @@
d';%0A
- fill_opacity = Math.roun... |
d0f08c672d21e236e928bb9e5404046486102802 | Remove comment | src/browser/user.js | src/browser/user.js | const Events = require('events');
// User won't notice lower intervals than these
const MAX_READ_INTERVAL = 250; // msecs
module.exports = () => {
const user = {events: new Events()};
const triggerReadIfNeeded = (() => {
let lastRead;
return () => {
const now = Date.now();
if (!lastRead || no... | JavaScript | 0 | @@ -466,73 +466,8 @@
) %7B%0A
- // requestAnimationFrame() consumes less CPU than d3.timer()%0A
|
57ea947e8570f008a31ea2d16d78f18942e3942d | Remove JSDoc comment | lib/node_modules/@stdlib/blas/base/daxpy/lib/browser.js | lib/node_modules/@stdlib/blas/base/daxpy/lib/browser.js | 'use strict';
/**
* Blas level 1 routine to multiply `x` and a constant and add the result to `y`.
*
* @module @stdlib/blas/base/daxpy
*
* @example
* var daxpy = require( '@stdlib/blas/base/daxpy' );
*
* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var y = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] );... | JavaScript | 0 | @@ -12,1639 +12,8 @@
';%0A%0A
-/**%0A* Blas level 1 routine to multiply %60x%60 and a constant and add the result to %60y%60.%0A*%0A* @module @stdlib/blas/base/daxpy%0A*%0A* @example%0A* var daxpy = require( '@stdlib/blas/base/daxpy' );%0A*%0A* var x = new Float64Array( %5B 1.0, 2.0, 3.0, 4.0, 5.0 %5D );%0A* var y = n... |
2b70731a5717ec4f46f537820e220bf3d3d52df0 | Update input_mqtt.js | plugins/inputs/mqtt/input_mqtt.js | plugins/inputs/mqtt/input_mqtt.js | var base_input = require('@pastash/pastash').base_input,
util = require('util'),
mqtt = require('mqtt'),
logger = require('@pastash/pastash').logger;
function InputMQTT() {
base_input.BaseInput.call(this);
this.mergeConfig(this.unserializer_config());
this.mergeConfig({
name: 'MQTT',
host_field: 'a... | JavaScript | 0.000012 | @@ -351,16 +351,24 @@
%5B'topic'
+, 'json'
%5D,%0A s
@@ -882,17 +882,16 @@
a) %7B%0A
-
try %7B%0A
@@ -908,19 +908,38 @@
j =
-JSON.parse(
+%7B message: this.json ? data :
data
@@ -953,35 +953,24 @@
ng()
-);%0A obj.
+,
topic
- =
+:
topic
-;
+ %7D
%0A
@@ -1037,31 +1037,33 @@
'data',
-data.... |
df8c0db3ad3725be2812d9583a88e5da0b9263ba | Test pageSize query parameter with a non-numeric value ending in a number | src/app/test/api/queryController.tests.js | src/app/test/api/queryController.tests.js | // test/queryController.tests.js
var chai = require('chai'),
should = chai.should(),
express = require('express'),
app = express(),
sinon = require('sinon'),
sinonChai = require('sinon-chai'),
_ = require('underscore'),
request = require('supertest'),
proxyquire = require('proxyquire').noPreserveCache()... | JavaScript | 0.000006 | @@ -4430,16 +4430,35 @@
ricValue
+StartingWithNumbers
= '12Fo
@@ -4474,16 +4474,61 @@
it(
+'of ' + nonNumericValueStartingWithNumbers +
'it uses
@@ -4747,16 +4747,655 @@
ricValue
+StartingWithNumbers)%0A .end(function(err, res) %7B%0A eventStoreClient.streams.get.should.have.been.calledW... |
c6c41a5d0354b41c7b8e23bdbf17fd8b14004b3b | Tidy up comments a bit. | jquery.example.js | jquery.example.js | /*
* jQuery Form Example Plugin 1.4.1
* Populate form inputs with example text that disappears on focus.
*
* e.g.
* $('input#name').example('Bob Smith');
* $('input[@title]').example(function() {
* return $(this).attr('title');
* });
* $('textarea#message').example('Type your message here', {
* clas... | JavaScript | 0 | @@ -1196,39 +1196,8 @@
the
-default options with the given
argu
@@ -1210,56 +1210,51 @@
and
-the
given
-%0A * text with the text option.%0A
+ example text into one options object.
*/%0A
@@ -1467,107 +1467,141 @@
-if ($.metadata) %7B%0A %0A /* If the Metadata plugin is being used me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.