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
efafa2f2b465a3da2edb6936ced1ebfdb7bd922d
Add missing function name
lib/node_modules/@stdlib/utils/is-anagram/test/test.js
lib/node_modules/@stdlib/utils/is-anagram/test/test.js
'use strict'; // MODULES // var tape = require( 'tape' ); var isAnagram = require( './../lib' ); // TESTS // tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); t.strictEqual( typeof isAnagram, 'function', 'main export is a function' ); t.end(); }); tape( 'the function throws an e...
JavaScript
0.999928
@@ -699,16 +699,24 @@ unction +badValue () %7B%0A%09%09%09
6ee5ae9d4df79f32853aea90dbf843d214da1979
add new retailer
app-webdriver/components/crawler/CrawlerInstance.js
app-webdriver/components/crawler/CrawlerInstance.js
/** * Created by Shawn Liu on 2015/5/20. */ var ScrapeQueue = require("./ScrapeQueue"); var Promise = require("bluebird"); var webdriver = require('selenium-webdriver'), By = require('selenium-webdriver').By, until = require('selenium-webdriver').until; var async = require("async"); var logger = require("node...
JavaScript
0
@@ -779,17 +779,17 @@ meout = -6 +3 0000;%0A%0A%7D
a7f9ea1340392fae44976db5503e3fcd64443c30
fix tests
e2e-tests/scenarios.js
e2e-tests/scenarios.js
'use strict'; /* https://github.com/angular/protractor/blob/master/docs/toc.md */ describe('my app', function() { browser.get('home.html'); it('should automatically redirect to /view1 when location hash/fragment is empty', function() { expect(browser.getLocationAbsUrl()).toMatch("/view1"); }); describ...
JavaScript
0.000001
@@ -121,28 +121,29 @@ rowser.get(' -home +index .html');%0A%0A @@ -378,36 +378,37 @@ browser.get(' -home +index .html#/view1');%0A @@ -699,12 +699,13 @@ et(' -home +index .htm
03a556e43f543f7d26fa331c31f610e1be2fc3ab
adding correct sw js url
gulpfile.babel.js
gulpfile.babel.js
'use strict'; import gulp from 'gulp'; import gulpLoadPlugins from 'gulp-load-plugins'; import runSequence from 'run-sequence'; import browserSync from 'browser-sync'; import access from 'gulp-accessibility'; import swPrecache from 'sw-precache'; import rename from 'gulp-rename'; const $ = gulpLoadPlugins(); // Test...
JavaScript
0.99986
@@ -3851,17 +3851,16 @@ refix: ' -/ '%0A %7D, c
899c655fe3fade0def42b4cbce95a7af285ebe3c
Fix map generation on the end of block
lib/map-generator.js
lib/map-generator.js
import { Base64 } from 'js-base64'; import mozilla from 'source-map'; import path from 'path'; export default class { constructor(root, opts) { this.root = root; this.opts = opts; this.mapOpts = opts.map || { }; } isMap() { if ( typeof this.opts.map !== 'unde...
JavaScript
0
@@ -6619,24 +6619,28 @@ lumn: column + - 1 %0A
afae87ab3f681ee08ba4cb5244fe3993bd1ac1c8
Use both short- and long-form getText
lib/i18n.js
lib/i18n.js
/* * Utilities: A classic collection of JavaScript utilities * Copyright 2112 Matthew Eernisse (mde@fleegix.org) * * 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...
JavaScript
0.000002
@@ -1589,16 +1589,22 @@ %0A this. +getTex t = func @@ -1677,16 +1677,41 @@ );%0A %7D;%0A + this.t = this.getText;%0A %7D;%0A%0Amodu
960aea2ebebdcb878069e30493e4a950ea5daf03
Use <noscript> instead of <span> to avoid inline style for CSP
lib/marko-widgets.js
lib/marko-widgets.js
/* * Copyright 2011 eBay Software Foundation * * 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 o...
JavaScript
0
@@ -821,20 +821,24 @@ ART = '%3C -span +noscript id=%22mar @@ -881,37 +881,19 @@ = '%22 - style=%22display:none;%22%3E%3C/span +%3E%3C/noscript %3E';%0A
53e8f329741460f3fe1fca0e905c2b696220fadf
Use toggleModal for headerbar navigation
library/Denkmal/library/Denkmal/Component/HeaderBar.js
library/Denkmal/library/Denkmal/Component/HeaderBar.js
/** * @class Denkmal_Component_HeaderBar * @extends Denkmal_Component_Abstract */ var Denkmal_Component_HeaderBar = Denkmal_Component_Abstract.extend({ /** @type String */ _class: 'Denkmal_Component_HeaderBar', /** @type Boolean */ narrow: null, events: { 'click .menu.dates .active .navButton': func...
JavaScript
0
@@ -324,33 +324,32 @@ n() %7B%0A if ( -! this.narrow) %7B%0A @@ -349,38 +349,16 @@ ow) %7B%0A - return;%0A %7D%0A th @@ -374,24 +374,32 @@ Menu(true);%0A + %7D%0A %7D,%0A%0A @@ -470,9 +470,8 @@ if ( -! this @@ -487,30 +487,8 @@ %7B%0A - return;%0A %7D%0A @...
acde460e830de9485dbc4e8cc01db1b1ecc78329
Remove pre-fetching pagination
app/assets/javascripts/components/pagination.es6.js
app/assets/javascripts/components/pagination.es6.js
// Require React React = require('react/addons'); // import material UI import mui from 'material-ui'; // Dependent component let RaisedButton = mui.RaisedButton; let ThemeManager = mui.Styles.ThemeManager; let LightRawTheme = mui.Styles.LightRawTheme; let Colors = mui.Styles.Colors // Define component const Paginati...
JavaScript
0.000024
@@ -1183,24 +1183,112 @@ age(link) %7B%0A + $.get('/members' + '?' + decodeURIComponent(link), function(data) %7B%0A %7D, %22html%22);%0A this.pro
45104aa604b5b1d6970933d0d7b2f9621c6194b3
fix images path after zip task
gulpfile.babel.js
gulpfile.babel.js
import gulp from 'gulp'; import plugins from 'gulp-load-plugins'; import browser from 'browser-sync'; import rimraf from 'rimraf'; import panini from 'panini'; import yargs from 'yargs'; import lazypipe from 'lazypipe'; import inky from 'inky'; import fs from 'fs'; import siphon from 'siphon-me...
JavaScript
0.000005
@@ -6446,14 +6446,8 @@ me + - '/' + pat @@ -6455,16 +6455,36 @@ .dirname +.replace('dist', '') ;%0A
3a76f4361e4137606bcb3732fd3ad8ac17432eb9
remove console log
lib/media-source.js
lib/media-source.js
var EventEmitter = require('events').EventEmitter var createAudio = require('simple-media-element').audio var assign = require('object-assign') var resume = require('./resume-context') var createAudioContext = require('./audio-context') var canPlaySrc = require('./can-play-src') var addOnce = require('./event-add-once...
JavaScript
0.000003
@@ -1232,84 +1232,8 @@ %7D) -%0A audio.addEventListener('play', function () %7B%0A console.log(%22PLAY%22)%0A %7D) %0A%0A
8d80b36ebb18596be35ddc345817d089260c205c
fix missing file copy task on watch
gulpfile.babel.js
gulpfile.babel.js
'use strict' // Load global config and gulp import config from './foley.json' import gulp from 'gulp' // Load modules to run tasks from files import requireDir from 'require-dir' import runSequence from 'run-sequence' const tasks = requireDir(__dirname + '/tasks') // eslint-disable-line // Watch task gulp.task('watc...
JavaScript
0.000019
@@ -572,32 +572,33 @@ %5D)%0A gulp.watch( +%5B config.paths.fon @@ -609,16 +609,46 @@ '**/*', + config.paths.files + '**/*'%5D, %5B'copy' @@ -664,21 +664,16 @@ .watch(%5B -%0A config.p @@ -690,36 +690,32 @@ ts + '**/*.hbs', -%0A config.paths.pa @@ -731,20 +731,16 @@ /*.hbs', -%0A config. @@ -76...
09c0fef7426900ba8ad1b474268e5036d5ae4ed8
Update controller1.js
controllers/controller1.js
controllers/controller1.js
/* load forcast of current location on load. Then upon submit/enter return forecast for searched city. Use Autocomplete API for search results. This will return a Json. list the city names from the Json, and attach the link associated with each city so it will load the forecast from that city. Populate new forecast...
JavaScript
0.000001
@@ -969,16 +969,23 @@ +$scope. objects%5B @@ -1360,16 +1360,23 @@ st.push( +$scope. objects%5B
51b57e062da5ac28e30148413da076911cbbf10c
Add onended callback for streams
lib/mediaSession.js
lib/mediaSession.js
var _ = require('underscore'); var util = require('util'); var bows = require('bows'); var JingleSession = require('./genericSession'); var RTCPeerConnection = require('rtcpeerconnection'); var log = bows('JingleMedia'); function MediaSession(opts) { JingleSession.call(this, opts); var self = this; va...
JavaScript
0
@@ -5505,32 +5505,57 @@ ction (event) %7B%0A + var self = this;%0A log(this @@ -5589,24 +5589,140 @@ am added');%0A +%0A event.stream.onended = function () %7B%0A self.onStreamRemoved(%7Bstream: event.stream%7D);%0A %7D;%0A%0A this
c6596d85946ec0b858a65f08eab4d3715663b3f6
Disable test-headless task
gulpfile.babel.js
gulpfile.babel.js
var gulp = require('gulp'), _ = require('lodash'), path = require('path'), lintSpecific = require('./util/gulp/lint-specific'), config = require('config'); var settings = { clientSource: path.resolve(config.get('clientSource')), ddocSource: path.resolve(config.get('ddocSource')), ddocOutput...
JavaScript
0
@@ -2821,32 +2821,34 @@ ulp, settings);%0A +// require(%22./tasks @@ -2875,32 +2875,90 @@ gulp, settings); + // Disabled until node LTS supports async/await AND gulp. %0Arequire(%22./task @@ -6399,16 +6399,18 @@ -reload' +/* , 'test- @@ -6418,16 +6418,18 @@ eadless' +*/ %5D);%0A%0A
7ded6bd0aed4852b4a80583cc2fd425403f8f1ed
Remove comma dangle
gulpfile.babel.js
gulpfile.babel.js
import gulp from 'gulp'; import thrift from 'gulp-thrift'; import babel from 'gulp-babel'; const basePaths = { src: 'src/', dest: 'lib/', }; const paths = { js: { src: `${basePaths.src}*.js`, dest: basePaths.dest, }, thrift: { src: `${basePaths.src}thrift/*.thrift`, dest: `${basePaths.dest}t...
JavaScript
0.998703
@@ -134,18 +134,17 @@ : 'lib/' -, %0A + %7D;%0A%0Acons @@ -220,17 +220,16 @@ ths.dest -, %0A %7D,%0A @@ -322,14 +322,12 @@ ft/%60 -, %0A %7D -, %0A%7D;%0A @@ -685,17 +685,16 @@ js:node' -, %0A %7D)) @@ -852,16 +852,16 @@ babel(%7B%0A + pr @@ -877,17 +877,16 @@ es2015'%5D -, %0A %7D))
10c223378729014a25cc48559aed507b968709d8
Remove the render throttle logic
lib/node-progress.js
lib/node-progress.js
/*! * node-progress * Copyright(c) 2011 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ /** * Expose `ProgressBar`. */ exports = module.exports = ProgressBar; /** * Initialize a `ProgressBar` with the given `fmt` string and `options` or * `total`. * * Options: * * - `curr` current completed index...
JavaScript
0
@@ -3022,90 +3022,8 @@ ) %7B%0A - clearTimeout(this.renderThrottleTimeout);%0A this.renderThrottleTimeout = null;%0A%0A if
85a1849d10980bd5738b231a2bcefb4e4a63f47d
Update token.js
lib/models/token.js
lib/models/token.js
'use strict'; /** * @file Model for Token * * Every connected user from AnyFetch has one, mapping its AnyFetch token to a set of Dropbox tokens. */ var mongoose = require('mongoose'); var TokenSchema = new mongoose.Schema({ // Access token to communicate with AnyFetch anyfetchToken: {type: String, default: '',...
JavaScript
0.000001
@@ -665,19 +665,16 @@ s token -is stale an
86c5dac9f251613fc02c87843010223e24cb65ba
Add eslint validation for data modules
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/webpack.config.js
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/webpack.config.js
/** * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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....
JavaScript
0
@@ -2846,32 +2846,375 @@ /.*%5C/Base%5C/*/,%0D%0A + /.*%5C/data%5C/APIClient.js/,%0D%0A /.*%5C/data%5C/AuthManager.js/,%0D%0A /.*%5C/data%5C/APIClientFactory.js/,%0D%0A /.*%5C/data%5C/ApiPermissionValidation.js/,%0D%0A /.*%5C/data%5C/AuthManager.js/,%0D%0A ...
1df0a84615d5c1d72fdebee41f89e98ce3158668
Add source mapping to production build
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/webpack.config.js
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/webpack.config.js
var path = require('path'); const config = { entry: { index: './source/index.js' }, output: { path: path.resolve(__dirname, 'public/dist'), filename: "[name].bundle.js", chunkFilename: "[name].bundle.js", publicPath: 'public/app/dist/' }, watch: f...
JavaScript
0
@@ -320,16 +320,44 @@ false,%0D%0A + devtool: %22source-map%22,%0D%0A modu @@ -1441,95 +1441,8 @@ e;%0D%0A - config.devtool = %22source-map%22;%0D%0A%7D%0D%0Aif (process.env.NODE_ENV === 'production') %7B%0D%0A%0D%0A %7D%0D%0A%0D
3d5810dd38d4818b8cea227683d84541e9614618
context gaurd in is
lib/observable/is.js
lib/observable/is.js
'use strict' var Promise = require('bluebird') Promise.config({ cancellation: true }) exports.define = { is (val, callback, event) { var type = typeof val var compare var promise var parsed = this.val var _this = this if (type === 'function') { compare = val } else { compare...
JavaScript
0.998004
@@ -830,44 +830,8 @@ %7D)%0A - // _this.on('remove', cancel)%0A @@ -1009,40 +1009,8 @@ %7D%0A%0A - // use attach not a closure%0A @@ -1139,220 +1139,275 @@ -// console.log(_this.path.join('.'))%0A _this.clearContext()%0A _this.off('data', is)%0A // console.log('does it...
d91d1c97dee5d3c75b8cb5ad91fbcd2506ef6f84
Use ast-types directly in lib/leap.js instead of recast.
lib/leap.js
lib/leap.js
/** * Copyright (c) 2013, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ var assert = requi...
JavaScript
0
@@ -331,22 +331,21 @@ %22);%0Avar -recast +types = requi @@ -348,22 +348,25 @@ equire(%22 -rec ast +-types %22);%0Avar @@ -369,22 +369,21 @@ var n = -recast +types .namedTy @@ -399,14 +399,13 @@ b = -recast +types .bui
59c601cc6cb68adcb3b48bd04292f643798a4759
Fix spaced-comment style issues
plugins/google_analytics/web_client/main.js
plugins/google_analytics/web_client/main.js
import _ from 'underscore'; import events from 'girder/events'; import { restRequest } from 'girder/rest'; import './lib/backbone.analytics'; import './routes'; events.on('g:appload.after', function () { /*eslint-disable */ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r...
JavaScript
0.000004
@@ -1124,16 +1124,17 @@ %7D%0A /* + global g @@ -1134,16 +1134,23 @@ lobal ga +:false */%0A g
94ccbd815ac94506eb6d8a8461166614872bb0ac
Update access
lib/magi.js
lib/magi.js
var http = require('http') , https = require('https') var api = require('./commands') , errors = require('./errors') function Client(options) { this.opts = { host: 'localhost' , port: 8232 , method: 'POST' , user: 'magirpc' , pass: 'magipass' , headers: { ...
JavaScript
0
@@ -260,15 +260,8 @@ ' -magirpc '%0A @@ -280,16 +280,8 @@ ' -magipass '%0A
b6806b04528dd11d7fc036e10805ebd94cc4f3c5
Save tags to result_tags variable
clarifai.js
clarifai.js
// Cloned from https://github.com/cassidoo/clarifai-javascript-starter module.exports = function (imgurl) { var $ = require('jQuery'); //tags to be returned var result_tags; var LocalStorage = require('node-localstorage').LocalStorage, localStorage = new LocalStorage('./scratch'); function getCredentials...
JavaScript
0
@@ -101,16 +101,77 @@ gurl) %7B%0A + console.log(%22INSIDE clarifai.js!%22);%0A console.log(imgurl);%0A var $ @@ -1923,16 +1923,40 @@ (tags);%0A + result_tags = tags;%0A retu
7bda9c55f975fa010f1a21f478025c02d611f988
Update namespace
lib/node_modules/@stdlib/math/base/blas/lib/index.js
lib/node_modules/@stdlib/math/base/blas/lib/index.js
'use strict'; /* * When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. */ // MODULES // var setReadOnly = require( '@stdlib/utils/define-read-only-property' ); // MAIN // /** * Top-level namespace. * * @namespace blas */ var blas = {}; /** * @name asum...
JavaScript
0.000001
@@ -479,32 +479,222 @@ las/asum' ) );%0A%0A +/**%0A* @name copy%0A* @memberof blas%0A* @readonly%0A* @type %7BFunction%7D%0A* @see %7B@link module:@stdlib/math/base/blas/copy%7D%0A*/%0AsetReadOnly( blas, 'copy', require( '@stdlib/math/base/blas/copy' ) );%0A%0A /**%0A* @name dasu
b7d166905d9b80f22eca61bb4fdde4357c1b722d
Update the interval of test danmus
lib/main.js
lib/main.js
// Require SDK var tmr = require('sdk/timers'); var tabs = require("sdk/tabs"); var self = require("sdk/self"); var prefs = require('sdk/simple-prefs').prefs; var buttons = require('sdk/ui/button/action'); var pageMod = require("sdk/page-mod"); // Global Variables var attached = false; var shooting = true;...
JavaScript
0.000077
@@ -953,17 +953,17 @@ %7D, -1 +5 00);%0A
6ab9f7831fc2c12ae383847d22cb4fa50f9c334d
Add resource types to allowed types
test/solution-template-validation-tests/test/mainTemplateTests.js
test/solution-template-validation-tests/test/mainTemplateTests.js
var assert = require('assert'); var util = require('./util'); const filesFolder = './'; var path = require('path'); var chai = require('chai'); var assert = chai.assert; // Using Assert style var expect = chai.expect; // Using Expect style var should = chai.should(); // Using Should style var folder = process.env.npm_...
JavaScript
0
@@ -8011,24 +8011,88 @@ split('/');%0A + var lowerType = val.type.toLowerCase();%0A @@ -8392,16 +8392,186 @@ sources' + %7C%7C%0A lowerType == 'microsoft.insights/autoscalesettings' %7C%7C %0A lowerType == 'microsoft.authorizat...
381dbb6569b07554a2543082cbb2e736fb425e2a
Fix image uploads being perfectly white when canvas read access is blocked
app/javascript/flavours/glitch/util/resize_image.js
app/javascript/flavours/glitch/util/resize_image.js
import EXIF from 'exif-js'; const MAX_IMAGE_PIXELS = 1638400; // 1280x1280px const getImageUrl = inputFile => new Promise((resolve, reject) => { if (window.URL && URL.createObjectURL) { try { resolve(URL.createObjectURL(inputFile)); } catch (error) { reject(error); } return; } const...
JavaScript
0
@@ -1916,16 +1916,363 @@ ight);%0A%0A + // The Tor Browser and maybe other browsers may prevent reading from canvas%0A // and return an all-white image instead. Assume reading failed if the resized%0A // image is perfectly white.%0A const imageData = context.getImageData(0, 0, width, height);%0A if (imageData.eve...
0e453572719f95e9a13053bc87d97740b73a77dc
add description
Algorithms/JS/trees/binaryLvlOrderTraverse.js
Algorithms/JS/trees/binaryLvlOrderTraverse.js
JavaScript
0.000004
@@ -0,0 +1,460 @@ +// Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).%0A%0A// For example:%0A// Given binary tree %7B3,9,20,#,#,15,7%7D,%0A// 3%0A// / %5C%0A// 9 20%0A// / %5C%0A// 15 7%0A// return its level order traversal as:%0A...
4b0a2181fac143c4bd6d30ccebb3305d29c4bb8c
correct notification message.
preload.js
preload.js
(function(){ var onMessageCreated = function(user, store, router) { return function(data){ var notify = false; var mode = 'all'; if (mode == 'all') { notify = true; } else if (mode == 'mention') { if (data.message.mentions.indexOf(parseInt(user.get('id'))) >= 0) { ...
JavaScript
0.000001
@@ -460,242 +460,15 @@ var -roomUrl = '/' + router.generate('room.index', message.get('room'));%0A var roomName = message.get('room.organization.name').toString() + ' / ' + message.get('room.name').toString();%0A var payload = %7B%0A sender: +title = dat @@ -483,25 +483,25 @@ e.senderN...
5fa757f7c4d3b0455798515d42819972e88e02f4
Use different token/serial files for dev & hack modes
app/argv.js
app/argv.js
/** * argv.js * client arguments & defaults */ var fs = require('fs') , path = require('path') , banner = fs.readFileSync( path.resolve( __dirname , 'banner' ) ) , defaults , argv ; if (process.env.NODE_ENV === "development") { defaults = { cloudHost : "127.0.0.1" , streamHost : "127.0.0.1" ...
JavaScript
0
@@ -421,32 +421,44 @@ env.PWD, 'serial +-development .conf')%0A%09%09, toke @@ -493,32 +493,44 @@ .env.PWD, 'token +-development .conf')%0A%09%09, env @@ -852,24 +852,32 @@ PWD, 'serial +-hacking .conf')%0A%09%09, @@ -920,24 +920,32 @@ .PWD, 'token +-hacking .conf')%0A%09%09,
0ab63c6f3704b288300c0ec7abf5a0075cdf4be3
Comment out unused
lib/main.js
lib/main.js
/*globals exports, require, console */ /*jslint vars:true, todo:true */ (function () {'use strict'; function l (msg) { console.log(msg); } var _ = require('sdk/l10n').get, data = require('sdk/self').data, cm = require('sdk/context-menu'); exports.main = function () { // Content-type handlers: on all...
JavaScript
0
@@ -94,17 +94,19 @@ rict';%0A%0A +/* %0A - function @@ -136,16 +136,19 @@ (msg);%0A%7D +%0A*/ %0A%0Avar%0A%09_ @@ -254,10 +254,9 @@ ');%0A -%09 %0A + expo @@ -365,20 +365,16 @@ ption?)%0A - %0A // @@ -781,17 +781,9 @@ %7D);%0A - %0A +%0A %0A%7D;%0A
10f0ab0c5fc029ce3497441fc7eb45431e67a3f2
missing comma
app/boot.js
app/boot.js
(function(document) { 'use strict'; if(/Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent)) { console.log = function(){}; } var gitVersion = document.documentElement.attributes['git-version'].value; require.config({ waitSeconds: 30, baseUrl : '/app/', paths: { 'authenticatio...
JavaScript
0.999885
@@ -4513,16 +4513,17 @@ s: 'FB'%7D +, %0A
162a2dd58fc0d3270dbb564f1b6751a5a1049d24
remove commented out log line [TASK-1025]
src/plugin/modules/widgets/knowledgeEngine.js
src/plugin/modules/widgets/knowledgeEngine.js
define([ 'knockout-plus', 'kb_common/html' ], function ( ko, html ) { 'use strict'; var t = html.tag, div = t('div'); function factory(config) { var runtime = config.runtime, hostNode, container; function attach(node) { hostNode = node; ...
JavaScript
0
@@ -434,56 +434,8 @@ ) %7B%0A - // console.log('params?', params);%0A%0A
c38a6e6af6ae578d51d3b3d35d007d0e3912b30a
Update ctrl.js
app/ctrl.js
app/ctrl.js
latinSquaresGame.controller('ctrl', ['$scope', '$rootScope', function($scope, $rootScope) { $scope.ngGridsterItems = [ { size: { x: 2, y: 3 }, position: [0, 0], id: 0 }, { size: { x: 2, y: 3 }, position: [0, 2], id: 1 }, { size: { x: 2, y: 3 }, position: [0, 4], id: 2 }, { size: { x: 2, ...
JavaScript
0.000003
@@ -1,8 +1,23 @@ +'use strict';%0A%0A latinSqu @@ -704,33 +704,33 @@ on: %5B4, 2%5D, id: -8 +9 %0A%09%09%7D,%0A%09%09%7B %0A%09%09%09si @@ -763,33 +763,34 @@ on: %5B4, 4%5D, id: -8 +10 %0A%09%09%7D,%0A%09%09%7B %0A%09%09%09si @@ -827,25 +827,26 @@ %5B4, 6%5D, id: -8 +11 %0A%09%09%7D,%0A%09%09%7B %0A%09 @@ -88...
434742a91a656c3b73e4e6231a1dca800d7dd1cd
Add more error detail in console when test fail
scripts/test/test-wrapper.js
scripts/test/test-wrapper.js
define(['jquery', 'lodash'], function($, _) { var testWrapper = function() { this.currentTest = ''; this.startTime = 0; this.testQuantity = 0; this.testFailed = 0; this.testSucceed = 0; this.$resultContainer = $('.TestResultsArea'); this.$testReportContainer =...
JavaScript
0
@@ -1395,24 +1395,120 @@ + '.');%0A%0A + if (!succeed) %7B%0A console.error(errorMsg);%0A %7D%0A%0A
f78c227893d8c85b4757773892ef9e9a03d29373
Support Request url in fetch interceptor
src/interceptors/fetchInterceptor.js
src/interceptors/fetchInterceptor.js
import queryString from 'query-string'; import parseUrl from 'parse-url'; import { baseInterceptor } from './baseInterceptor'; import { Response as KakapoResponse } from '../Response'; import { nativeFetch } from '../helpers/nativeServices'; export const name = 'fetch'; export const reference = nativeFetch; const fa...
JavaScript
0
@@ -562,24 +562,75 @@ = %7B%7D) =%3E %7B%0A + url = url instanceof Request ? url.url : url;%0A%0A const bo
691d833b07f405040008348dfe3a0557d4fe9ac6
Remove auto-timeline refresh
javascript/controllers/twitter-controller.js
javascript/controllers/twitter-controller.js
angular.module('Gistter') .controller('TwitterController', function($scope, $q, twitterService, $http) { $scope.tweets = []; $scope.repos = []; twitterService.initialize(); // using the OAuth authorization result get the latest 20+ tweets from twitter for the user $scope.refreshTimeline = function(maxId) {...
JavaScript
0.000001
@@ -2149,44 +2149,8 @@ ();%0A - $scope.refreshTimeline();%0A @@ -2906,38 +2906,8 @@ ue;%0A - $scope.refreshTimeline();%0A %7D%0A
68f0ab5355c4d56a273a83dc30b066f3fb0be074
Disable Node integration
app/main.js
app/main.js
var path = require("path"); var fs = require("fs"); var underscore = require("underscore"); require('electron-debug')({ showDevTools: false }); if (process.env.METEOR_SETTINGS){ var meteorSettings = JSON.parse(process.env.METEOR_SETTINGS); var electronSettings = meteorSettings.electron || {}; } else { var e...
JavaScript
0
@@ -782,16 +782,452 @@ me: true +,%0A /**%0A * Disable Electron's Node integration so that browser dependencies like %60moment%60 will load themselves%0A * like normal i.e. into the window rather than into modules, and also to prevent untrusted client%0A * code from having access to the process and file system:...
173b1d22895a42d7cedad5219d543607814b0ab6
Fix pokemon relase message
src/javascript/components/pokemon.js
src/javascript/components/pokemon.js
import emitter from 'js/emitter'; class Pokemon { constructor(element, options = {}) { this.$element = element; this.options = options; this.isPokemonCaught = false; this.caughtClass = 'pokemon--caught'; } init() { this.bindListeners(); } bindListeners() { this.$element.on('click',...
JavaScript
0.000032
@@ -571,17 +571,24 @@ options. -r +pokemonR eleaseTe
2b50da4a4acb5ef18af4c77eea1c41e37d8872cf
Load GA on deviceready
app/main.js
app/main.js
require(['jquery','backbone', 'router', 'fastclick', 'moxie.conf', 'backbone.queryparams', 'backbone.layoutmanager'], function($, Backbone, MoxieRouter, FastClick, conf) { // Include FastClick, this removes a 300ms touch event delay $(function() { new FastClick(document.body); // Listen for eve...
JavaScript
0
@@ -59,16 +59,22 @@ e.conf', + 'ga', 'backbo @@ -167,24 +167,28 @@ ck, conf +, GA ) %7B%0A // Inclu @@ -183,127 +183,689 @@ -// Include FastClick, this removes a 300ms touch event delay%0A $(function() %7B%0A new FastClick(document.body);%0A%0A +function startGA() %7B%0A // Init GA & st...
cd13553757d73c8a9d7c4c626c242fb8b9ce2394
fix ytsr.getFilters handling previous querys wrong
lib/main.js
lib/main.js
const UTIL = require('./util.js'); const PARSE_ITEM = require('./parseItem.js'); const MINIGET = require('miniget'); // eslint-disable-next-line no-useless-escape, max-len const nextpagRegex = /<div class="(([^"]*branded\-page\-box[^"]*search\-pager)|([^"]*search\-pager[^"]*branded\-page\-box))/; const main = module....
JavaScript
0.000003
@@ -1,12 +1,40 @@ +const URL = require('url');%0A const UTIL = @@ -2696,16 +2696,53 @@ chString + %7C%7C typeof(searchString) !== 'string' ) throw @@ -2782,16 +2782,286 @@ ory');%0A%0A + // watch out for previous filter requests%0A // in such a case searchString would be an url including %60sp%60 & %60search_que...
4dce405276b4b486ea63335f1e531770172bed89
Add support for matching errors from gfortran
lib/make.js
lib/make.js
'use babel'; import fs from 'fs'; import path from 'path'; import os from 'os'; import { exec } from 'child_process'; import voucher from 'voucher'; import { EventEmitter } from 'events'; export const config = { jobs: { title: 'Simultaneous jobs', description: 'Limits how many jobs make will run simultaneou...
JavaScript
0
@@ -912,32 +912,141 @@ ?%3Cmessage%3E.+)';%0A + const gfortranErrorMatch = '(?%3Cfile%3E%5B%5E:%5C%5Cn%5D+):(?%3Cline%3E%5C%5Cd+):(?%3Ccol%3E%5C%5Cd+):%5B%5C%5Cs%5C%5CS%5D+?Error: (?%3Cmessage%3E.+)';%0A const ocamlErr @@ -1317,16 +1317,36 @@ orMatch, + gfortranErrorMatch, ocamlEr
7f2fe45cfef9df2ced1146915b811e4225bee3be
Add summary with first two rows implemented
src/sections/Summary.js
src/sections/Summary.js
import React from 'react'; export default ({ modules, serverID }) => ( <p>Summary not implemented yet</p> );
JavaScript
0
@@ -25,88 +25,1297 @@ ';%0A%0A -export default (%7B modules, serverID %7D) =%3E (%0A %3Cp%3ESummary not implemented yet%3C/p%3E%0A +import %7B NAME, PAGES, FEATURES %7D from '../data/columnNames';%0A%0Aexport default (%7B modules, serverID %7D) =%3E (%0A (!modules %7C%7C !serverID) ? (%0A %3Cspan%3E%3C/span%3E%0A...
7c8720dfa852b844f6c1db80182c072d8dc044d5
Update home link
src/js/containers/app/main-header.js
src/js/containers/app/main-header.js
'use strict' import React from 'react' const MainHeader = () => ( <header className='header' role='banner'> <a className='logo' href='/' role='logo'> <img src='svg/logo.svg' /> </a> <a className='btn-link' href='https://github.com/frontendbr/eventos' title='Anuncie seu evento'> ...
JavaScript
0
@@ -135,16 +135,17 @@ ' href=' +. /' role=
c0fd2c8497d6c4f0a64fc43d49a0272b6e3b7f8b
Fix jshint errors in lib/make.js
lib/make.js
lib/make.js
var VM = require('vm'), Q = require('q'), QFS = require('q-fs'), INHERIT = require('inherit'), APW = require('apw'), PATH = require('./path'), UTIL = require('util'), BEMUTIL = require('./util'), REGISTRY = require('./nodesregistry'), LOGGER = require('./logger'); exports.DEFAULT_WO...
JavaScript
0.00003
@@ -1,12 +1,27 @@ +'use strict';%0A%0A var VM = req @@ -1369,16 +1369,17 @@ (head == += id) ret @@ -1974,24 +1974,55 @@ ion(plan) %7B%0A + /* jshint -W109 */%0A @@ -2109,24 +2109,55 @@ n.getId());%0A + /* jshint +W109 */%0A @@ -2456,24 +2456,55 @@ (exists) %7B%0A...
027328087d4db667aeced2bfabd1c41c4b101769
remove unused services reference
app/views/search/search-filters/left-side-filter.js
app/views/search/search-filters/left-side-filter.js
define(['app', 'text!views/search/search-filters/left-side-filter.html', 'lodash', 'ngDialog', 'components/scbd-angularjs-services/services/utilities'], function (app, template, _) { app.directive('leftSideFilter', ['ngDialog', 'Thesaurus', 'locale', '$timeout', function (ngDialog, thesaurus, locale, $tim...
JavaScript
0
@@ -240,89 +240,43 @@ ', ' -Thesaurus', 'locale', '$timeout', function (ngDialog, thesaurus, locale, $timeout +locale', function (ngDialog, locale ) %7B%0A @@ -2066,20 +2066,8 @@ pe', - '$timeout', 'th @@ -2121,18 +2121,8 @@ ope, - $timeout, the
92b756559b8c178b4ef338513d8c8b54f03f83f3
change cronjob to daily
src/sendStuffToUsers.js
src/sendStuffToUsers.js
'use strict'; var sender = { registerCronJob: function(bot) { var CronJob = require('cron').CronJob; // for testing: all minute new CronJob('*/1 * * * *', function() { //new CronJob('0 1 0 * * *', function() { console.log("++++++++++++++++++\nTime to send the newest stuff to the users!\n+++++++...
JavaScript
0.000003
@@ -136,16 +136,18 @@ ute%0A +// new Cron @@ -178,26 +178,24 @@ ion() %7B%0A -// new CronJob(
6b1985b20c982b0d2a16f704c8fd1d9c93e60321
Break merged single-line into multi-line
lib/pulsar/index.js
lib/pulsar/index.js
var PulsarStatus = require('./status'); var PulsarExec = require('./exec'); var PulsarTask = require('./task'); var events = require('events'); var util = require('util'); var _ = require('underscore'); var shellwords = require('shellwords'); var log = require('../logger'); module.exports = (function() { /** * @...
JavaScript
0.0004
@@ -4022,24 +4022,30 @@ app: app, +%0A env: env, c @@ -4042,16 +4042,22 @@ nv: env, +%0A capistr
71cc4d7d99b58dc079a056530366735952a86601
Change requestStart on mqlight probe to not mark all events as root
probes/mqlight-probe.js
probes/mqlight-probe.js
/******************************************************************************* * Copyright 2015 IBM Corp. * * 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/li...
JavaScript
0
@@ -4668,24 +4668,52 @@ thodArgs) %7B%0A +%09if(method == 'message') %7B%0A%09 %09probeData.r @@ -4781,16 +4781,112 @@ timer);%0A +%09%7D else %7B%0A%09%09probeData.req = request.startRequest('MQLight', method, false, probeData.timer);%0A%09%7D%0A %7D;%0A%0AMQLi
7b06894eaf6bcd626a6120016225dda625097e62
fix back button bug when asked to exit
src/js/services/backButtonService.js
src/js/services/backButtonService.js
'use strict'; angular.module('copayApp.services').factory('backButton', function($log, $rootScope, gettextCatalog, $deepStateRedirect, $document, $timeout, go, $state, lodash) { var root = {}; root.menuOpened = false; root.dontDeletePath = false; var arrHistory = []; var body = $document.find('body').eq(0); ...
JavaScript
0.000001
@@ -1969,16 +1969,54 @@ e screen + %0A%09%09%09%09%09%09arrHistory.push(currentState); %0A%09%09%09%09%09%09a
a5c68989d8bde44410b9dd94ce852f6b2632cfeb
fix test
src/server/_modelFor.js
src/server/_modelFor.js
(function() { "use strict"; var modelFor = require("./modelFor"); exports.test_standard_model_includes_page_title = function(test) { var expectedTitle = "abc ABC 123"; var result = modelFor(expectedTitle, {}); test.equal(result.title, expectedTitle); test.done(); }; ...
JavaScript
0.000002
@@ -66,24 +66,134 @@ odelFor%22);%0A%0A + function fakeRequest() %7B%0A return %7B%0A flash : function() %7B return %7B%7D; %7D%0A %7D;%0A %7D%0A%0A exports. @@ -339,18 +339,29 @@ dTitle, -%7B%7D +fakeRequest() );%0A @@ -549,39 +549,60 @@ t = -%7B%0A user: %7B%7...
b6f7f94344522229cb683db63b25bc879fcbce09
fix in text
lib/property/text.js
lib/property/text.js
'use strict' var Property = require('./') /** * Use text to specify a text to an element * @type {string} * @memberOf Property * * @example * var a = new Element({ * text: { * val: "some text" * } * }) * */ exports.properties = { text: new Property({ define: { generateConstructor () { ...
JavaScript
1
@@ -469,32 +469,81 @@ '))%0A %7D%0A + return Property.apply(this, arguments)%0A %7D%0A
dbdc93c7e88c9cb6d2307b954090eb65b2e8763e
Fix disappearing cards, yeah!
packages/game-factory/lib/preset-helper.js
packages/game-factory/lib/preset-helper.js
"use strict"; const Symbols = require("dc-constants").Symbols; function PresetHelper(preset, gameData, choiceProvider) { function createStateFromPreset() { return new preset.state.class(...evaluateStateArgs()); } this.createStateFromPreset = createStateFromPreset; function evaluateStateArgs()...
JavaScript
0
@@ -1529,62 +1529,8 @@ ); -%0A%0A console.log(%22final cards %22, player.dcCards); %0A @@ -1686,18 +1686,16 @@ .random) - %7B %0A @@ -1723,65 +1723,8 @@ ();%0A - console.log(%22popped card %22, card);%0A %7D%0A @@ -1731,18 +1731,16 @@ else - %7B %0A @@ -1782,...
514f451a6af39eb7aaac6bb008fe746ea0460d58
fix proper bot api
lib/misc.js
lib/misc.js
var auth = require('./auth'); var logger = require('./logger'); var sessions = require('./sessions'); const timeDelay = 30 * 1000; function start_feedback(chatId, callback) { var feedbackMsg = "Thanks for using Cinnabot 😁\n"; feedbackMsg += "Feel free to tell us how cinnabot can be improved.\n"; feedback...
JavaScript
0.0126
@@ -2564,16 +2564,24 @@ Message( +chatId, %22Sorry y
0494a8e406453f01a4ba67aab4c3cabe8fad87d1
exit on core:cancel
lib/mleh.js
lib/mleh.js
'use babel'; import {CompositeDisposable} from 'atom'; import MlehView from './mleh-view'; export default { activate(state) { this.mleh = new MlehView(); this.mleh.createPanel(); console.log(this.mleh.contentContainer); this.mleh.contentContainer.style.position = "relative"; this.mleh.contentCon...
JavaScript
0.000002
@@ -834,16 +834,58 @@ rsorUp() +,%0A 'core:cancel': () =%3E this.detach() %0A %7D))
ac8324ffb09ac13cb060085c78fa0a0c796b053c
use prototype methods
promise.js
promise.js
function Promise(worker) { this.onResolve = undefined; this.onReject = undefined; this.result = undefined; this.state = 'pending'; this.resolve = function(result) { this.result = result; this.state = 'resolved'; if (this.onResolve) this.onResolve(result); } this.reject = f...
JavaScript
0.000001
@@ -137,24 +137,31 @@ ding';%0D%0A%0D%0A +worker( this.resolve @@ -160,16 +160,85 @@ .resolve +.bind(this), this.reject.bind(this));%0D%0A%7D%0D%0A%0D%0APromise.prototype.resolve = funct @@ -246,34 +246,32 @@ on(result) %7B%0D%0A - - this.result = re @@ -269,34 +269,32 @@ sult = result;%0D%0A - this....
27bae7e1ae0392502fa338ac73d1824fa6469ffb
add nomralize css to core.css
src/layouts/CoreLayout/CoreLayout.js
src/layouts/CoreLayout/CoreLayout.js
import React from 'react' import Header from '../../components/Header' import Navbar from '../../components/Navbar' import './CoreLayout.css' import '../../styles/core.css' import '~normalize.css/normalize'; export const CoreLayout = ({ children }) => ( <div className='container'> <Header /> <Navbar /> <...
JavaScript
0.000003
@@ -169,43 +169,8 @@ css' -%0Aimport '~normalize.css/normalize'; %0A%0Aex
5470972f6a61111da661b0092d71645751bf1259
Update devtools injection
src/renderers/native/ReactNative/ReactNative.js
src/renderers/native/ReactNative/ReactNative.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
JavaScript
0
@@ -462,16 +462,84 @@ ronment%0A +var ReactNativeComponentTree = require('ReactNativeComponentTree');%0A var Reac @@ -2208,81 +2208,516 @@ C -urrentOwner: ReactCurrentOwner,%0A InstanceHandles: ReactInstanceHandles +omponentTree: %7B%0A getClosestInstanceFromNode: function(node) %7B%0A return React...
a62a09e67e324964467f7c447a722e3a8ba7aa17
Change mongo connection error message
packages/strapi-hook-mongoose/lib/index.js
packages/strapi-hook-mongoose/lib/index.js
'use strict'; /** * Module dependencies */ // Public node modules. const path = require('path'); const fs = require('fs'); const url = require('url'); const _ = require('lodash'); const mongoose = require('mongoose'); require('mongoose-long')(mongoose); const Mongoose = mongoose.Mongoose; const relations = require...
JavaScript
0
@@ -2730,19 +2730,13 @@ ch ( -%7B message %7D +error ) %7B%0A @@ -2758,80 +2758,64 @@ err -Msg = message.includes(%60:$%7Bport%7D%60)%0A ? 'Make sure your + = new Error(%0A %60Error connecting to the Mongo -DB dat @@ -2823,81 +2823,88 @@ base - is running...'%0A : message;%0A%0...
6d52b3eda020367a16c6315835d3cf23d19fc9b8
add .vy to find_contracts pattern
packages/truffle-contract-sources/index.js
packages/truffle-contract-sources/index.js
const debug = require("debug")("contract-sources"); const path = require("path"); const glob = require("glob"); const DEFAULT_PATTERN = "**/*.sol"; module.exports = function(pattern, callback) { // pattern is either a directory (contracts directory), or an absolute path // with a glob expression if (!glob.hasM...
JavaScript
0
@@ -137,19 +137,24 @@ = %22**/*. +%7B sol +,vy%7D %22;%0A%0Amodu @@ -432,17 +432,16 @@ w: true - // follo
06b63e3920018c7940f99cc99f82263958ecbecc
Add JSONParser.js to ViewlessModels - working in node again
core/FOAMViewlessModels.js
core/FOAMViewlessModels.js
/** * @license * Copyright 2012 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
@@ -799,16 +799,32 @@ 'FOAM',%0A + 'JSONParser',%0A 'Templ
893f42ab0017d4ffc030a8928b9836f329784ca1
Update init.js
packages/truffle-core/lib/commands/init.js
packages/truffle-core/lib/commands/init.js
var command = { command: 'init', description: 'Initialize new Ethereum project with example contracts and tests', builder: {}, run: function (options, done) { var Config = require("truffle-config"); var OS = require("os"); var UnboxCommand = require("./unbox"); var config = Config.default().wit...
JavaScript
0
@@ -59,16 +59,26 @@ ize new +and empty Ethereum @@ -89,41 +89,8 @@ ject - with example contracts and tests ',%0A
da87fd77470f8182c3603cfea7eb6e035d6b9e6c
Make warnings go out on stderr
lib/renderers/cli.js
lib/renderers/cli.js
var mout = require('mout'); var sizes = { tag: 10, // Tag max chars label: 23, // Label max chars sumup: 5 // Amount to sum when the label exceeds }; var tagColors = { 'warn': 'yellow', 'error': 'red', 'default': 'cyan' }; function isCompact() { return process.stdout.columns < 120; } ...
JavaScript
0.000043
@@ -1708,34 +1708,167 @@ -this._write(process.stdout +var outputStream = process.stdout;%0A%0A if (data.level === 'warn') %7B%0A outputStream = process.stderr;%0A %7D%0A%0A this._write(outputStream , 'b
9d6e8bc8b30a3c4acb0b471967ddd2b59c2c2380
Fix style
src/lib/substituteVariantsAtRules.js
src/lib/substituteVariantsAtRules.js
import _ from 'lodash' import postcss from 'postcss' import selectorParser from 'postcss-selector-parser' import generateVariantFunction from '../util/generateVariantFunction' import prefixSelector from '../util/prefixSelector' function generatePseudoClassVariant(pseudoClass, selectorPrefix = pseudoClass) { return g...
JavaScript
0.000001
@@ -3146,16 +3146,29 @@ w Error( +%0A %60Your co @@ -3328,10 +3328,20 @@ nt?%60 +%0A ) -; %0A
631a9fdfd0f9fe3129c33c05b73acd941aba5d76
Update ip_blur.js
ip/ip_blur.js
ip/ip_blur.js
/* blur.js */ var ip_blur = function(src, r){ var dst = ip_create_img( src.width, src.height ); _ip_gauss_blur( src.data,dst.data, src.width,src.height, r ); return dst; } var _ip_guass_boxes = function(sigma, n){ var wIdeal = Math.sqrt((12*sigma*sigma/n)+1); // Ideal averaging filter width v...
JavaScript
0.000001
@@ -676,16 +676,17 @@ r = func +t ion(scl,
50f03e053a2b00833faa2e0e2dce1b45a9847d9d
Update test-script.js
src/test/test-script.js
src/test/test-script.js
/* global EpubMaker */ 'use strict'; window.runTest = function() { function f(title) { return function(value) { return { title: title, content: value }; }; } $.when( $.get('src/test/content-for-epub/header.html', null, null, 'text').then(f()), $.get('src/test/content-for-epub/prefa...
JavaScript
0.000001
@@ -1136,61 +1136,8 @@ ) %7B%0A - // FIXME add way to include custom jpg for cover%0A @@ -3603,12 +3603,13 @@ oadEpub();%0A%7D +%0A
737c2872ef21f973dd265031764631515d6ed716
Fix typo in evented mixin.
packages/ember-runtime/lib/mixins/evented.js
packages/ember-runtime/lib/mixins/evented.js
/** @module ember @submodule ember-runtime */ /** This mixin allows for Ember objects to subscribe to and emit events. ```javascript App.Person = Ember.Object.extend(Ember.Evented, { greet: function() { // ... this.trigger('greet'); } }); var person = App.Person.create(); person.on('...
JavaScript
0.000002
@@ -2247,16 +2247,25 @@ idEat', +function( food) %7B%0A
601fba9ef7de4726fdbc010913d86f520dcacbc9
fix Scrollable test typos, and make sure to limit actions to container div
tests/unit/Scrollable.js
tests/unit/Scrollable.js
define([ "dcl/dcl", "intern!object", "intern/chai!assert", "requirejs-dplugins/jquery!attributes/classes", // hasClass() "delite/register", "delite/Widget", "delite/Scrollable", "./resources/ScrollableTestContainer", "./resources/Scrollable-shared" ], function (dcl, registerSuite, assert, $, register, Widget, ...
JavaScript
0
@@ -691,32 +691,33 @@ r%3E%5C%0A%09%09%09%3Cmy-scrol +l able-test-contai @@ -739,32 +739,33 @@ %5C%0A%09%09%09%3C/my-scrol +l able-test-contai @@ -3942,16 +3942,17 @@ my-scrol +l able-tes @@ -4015,16 +4015,25 @@ r.parse( +container );%0A%09%09%7D,%0A @@ -4197,24 +4197,25 @@ %0A%09// Program +m atic creatio @...
62a180bafccf31ee24da282d53c37cd1c733644b
Add req and res as arguments to .put's callback
lib/restifyclient.js
lib/restifyclient.js
/* * Copyright (c) 2012, Joyent, Inc. All rights reserved. * * Generic restify client with basic auth */ var restify = require('restify'); /** * Constructor * * Note that in options you can pass in any parameters that the restify * RestClient constructor takes (for example retry/backoff settings). * * @par...
JavaScript
0
@@ -2956,16 +2956,26 @@ ull, obj +, req, res );%0A %7D
70fbaf1ae0cc3765ab4b876f48e068064dfe6123
Update scionWrapper.js
lib/scionWrapper.js
lib/scionWrapper.js
(function(global, factory) { if (typeof module === 'object') { module.exports = factory(); } else if (typeof define === 'function' && define.amd) { define(factory); } else { window.scionWrapper = factory(); } })(this, function() { // console.log("load: util.js"); return ...
JavaScript
0
@@ -1956,32 +1956,24 @@ unction(name -, object ) %7B%0A
0ee2b1633caaf19542e9fde17e17d489545999a9
Use new crossorigin getter to determine which anchors to work on
lib/transforms/addRelNoopenerToBlankTargetAnchors.js
lib/transforms/addRelNoopenerToBlankTargetAnchors.js
module.exports = function (queryObj) { return function addRelNoopenerToBlankTargetAnchors(assetGraph) { var externalAnchors = assetGraph.findRelations({ type: 'HtmlAnchor', hrefType: 'absolute' // FIXME: also check that the relation is cross origin }, true).filter...
JavaScript
0
@@ -24,16 +24,8 @@ on ( -queryObj ) %7B%0A @@ -198,95 +198,25 @@ -hrefType: 'absolute'%0A // FIXME: also check that the relation is cross origin +crossorigin: true %0A
bdec7e363be5b66eb7116a57e3370b99be370fec
Add keydown event to fix invalid() bug
javascript.js
javascript.js
'use strict'; //highlights the border red for invalid() //Set to global for resetBorder() var inputBorder = document.getElementById("chirps"); //Triggers event when user submits button from enter on keyboard $("#enterKeyboard").submit(function(event) { event.preventDefault(); submitButton(); }); function sub...
JavaScript
0.000001
@@ -301,16 +301,82 @@ );%0A%7D);%0A%0A +$(%22#enterKeyboard%22).keydown(function() %7B%0A resetBorder();%0A%7D);%0A%0A%0A function
fd6c8da6139c4fde57d1a18c87b0a67cc8709e8e
Migrate expectAssertion to assert.throws
tests/unit/array-test.js
tests/unit/array-test.js
import Ember from 'ember'; import { module, test } from 'qunit'; import ArrayController from 'ember-legacy-controllers/array'; import expectAssertion from 'ember-dev/test-helper/assertion'; const { get, set } = Ember; module('ArrayController'); test('defaults its `model` to an empty array', function (assert) { var...
JavaScript
0.000001
@@ -123,71 +123,8 @@ ay'; -%0Aimport expectAssertion from 'ember-dev/test-helper/assertion'; %0A%0Aco @@ -1441,38 +1441,14 @@ ert. -expect(0);%0A expectAssertion +throws (fun
9ff68fee1f667d2d1aec8ea5530257fe3f7f84c9
optimize storage
src/storage/database.js
src/storage/database.js
import {merge, pick} from 'lodash' const key = 'wukong' export function open(state = {}) { try { return merge({ user: { auth: { status: true }, preferences: { listenOnly: false, connection: 0, audioQuality: 2 } } }, JSON.par...
JavaScript
0.000001
@@ -12,16 +12,25 @@ ge, pick +, isEqual %7D from ' @@ -63,85 +63,45 @@ ng'%0A -%0Aexport function open(state +const data = %7B -%7D) %7B%0A try %7B%0A return merge( +%0A open: %7B%0A - user: %7B%0A @@ -92,26 +92,24 @@ user: %7B%0A - auth: @@ -118,18 +118,16 @@ - stat...
11a3bace81ea9af2d9f914fffe613ecf2d54c4dc
Add a GROUP server type into the database specification
src/tracker/savefile.js
src/tracker/savefile.js
/* * SAVEFILE STRUCTURE * ================== * * { * meta: { * users: { * <discord user id>: { * name: <user name> * }, ... * }, * * // the user index is an array of discord user ids, * // these indexes are used in the message objects to save space * userindex: [ ...
JavaScript
0
@@ -447,16 +447,23 @@ ERVER%22%7C%22 +GROUP%22%7C DM%22%3E%0A *
66b1196c3c4f7439c4a0b2a58ba516d56943e426
revert jest-setup file back to original state
jest-setup.js
jest-setup.js
import Enzyme from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({ adapter: new Adapter() });
JavaScript
0
@@ -115,8 +115,9 @@ er() %7D); +%0A
772a9f7785701cf6d560f67205f4526fb5f66972
Fix put function in client library
src/store/api/client.js
src/store/api/client.js
import superagent from 'superagent' const client = { get (path, callback) { superagent .get(path) .end((err, res) => { callback(err, res.body) }) }, post (path, data, callback) { superagent .post(path) .send(data) .end((err, res) => { callback(err, res...
JavaScript
0.000003
@@ -381,34 +381,33 @@ eragent%0A .p -os +u t(path)%0A .s
5d5908c3e497066ab7fac20dbfbdb43d410b4b1b
fix navigation to the next question on answer submission
public/app/services/utils/rgiQuestionSetSrvc.js
public/app/services/utils/rgiQuestionSetSrvc.js
'use strict'; angular.module('app').factory('rgiQuestionSetSrvc', function (rgiUtilsSrvc) { var answers = []; return { isAnyQuestionRemaining: function(answer) { return answer.question_order !== answers.length; }, getNextQuestionId: function(answer) { return Str...
JavaScript
0.988665
@@ -70,16 +70,33 @@ nction ( +rgiQuestionSrvc, rgiUtils @@ -127,134 +127,1856 @@ = %5B%5D -;%0A%0A return %7B%0A isAnyQuestionRemaining: function(answer) %7B%0A return answer.question_order !== answers.length +, questions;%0A%0A rgiQuestionSrvc.query(%7Bassessment_ID: 'base'%7D, function (qu...
9a063bd4c490f8bda620fbb7ece90d7c869f6eda
fix flow error
packages/preact-fela/src/renderToNodeList.js
packages/preact-fela/src/renderToNodeList.js
/* @flow */ import { h as createElement } from 'preact' import { renderToNodeListFactory } from 'fela-bindings' export default renderToNodeListFactory(createElement)
JavaScript
0.000001
@@ -5,16 +5,30 @@ flow */%0A +// $FlowFixMe%0A import %7B
194d57c7ca20abbbd675f201b5a12f4e451aa7e9
Remove log
main/server/cluster/index.js
main/server/cluster/index.js
const os = require('os'); const path = require('path'); const SocketCluster = require('socketcluster') .SocketCluster; //var workerCount = process.env.WEB_CONCURRENCY || 1; // TODO: Make more stable the multiple workers module.exports = function(options) { var workerCount = 1; workerCount = workerCount || os....
JavaScript
0.000001
@@ -1135,41 +1135,8 @@ %7D;%0A%0A - console.log(clusterOptions);%0A%0A%0A va
b76bd0d4ca26b2a85f17b02f1989d89775ce50f8
Add ssl.enabled to filtered config. This branch fixes #35
lib/config/index.js
lib/config/index.js
'use strict'; var fs = require('fs'), extend = require('extend'), path = require('path'); var defaultConfig = { host: 'localhost', port: 9090, login: { enabled: false, sessionSecret: 'secretsecret', // Steam powered log in, get API key from http://steamcommunity.com/dev/a...
JavaScript
0
@@ -2923,24 +2923,78 @@ d%0A %7D%0A + %7D,%0A ssl: %7B%0A enabled: config.ssl.enabled%0A %7D%0A%7D;%0A%0Aex
ef42e11376044787db1c1967892ff83cb93a6158
make serializable
lib/dependencies/AMDRequireItemDependency.js
lib/dependencies/AMDRequireItemDependency.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const ModuleDependency = require("./ModuleDependency"); const ModuleDependencyTemplateAsRequireId = require("./ModuleDependencyTemplateAsRequireId"); class AMDRequireItemDependency extends ModuleDependen...
JavaScript
0.000001
@@ -109,16 +109,78 @@ rict%22;%0A%0A +const makeSerializable = require(%22../util/makeSerializable%22);%0A const Mo @@ -223,24 +223,24 @@ pendency%22);%0A - const Module @@ -429,16 +429,17 @@ quest);%0A +%0A %09%09this.r @@ -497,17 +497,336 @@ re%22;%0A%09%7D%0A -%7D +%0A%09serialize(context) %7B%0A%09%09const %...
68e6612a39a2eab8b0b0e972683bcaf987f72acf
Update metric validation to support single metric or array.
assets/js/modules/adsense/util/report-validation.js
assets/js/modules/adsense/util/report-validation.js
/** * Reporting API validation utilities. * * 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/LI...
JavaScript
0
@@ -652,16 +652,92 @@ e.%0A */%0A%0A +/**%0A * External dependencies%0A */%0Aimport castArray from 'lodash/castArray';%0A%0A /**%0A * I @@ -2962,21 +2962,30 @@ @param %7B +( Array +%7Cstring) %7D metric @@ -2992,17 +2992,19 @@ s Metric -s +(s) to vali @@ -3063,72 +3063,47 @@ %7B%0A%09 -invariant( Array.isArra...
72d9daacf61311bcc5f7aad090f0d70e6fa533a7
Update userscript info
hide_info.user.js
hide_info.user.js
// ==UserScript== // @name Hide/Show Unnecessary Info in Chat // @version 1.0 // @author michaelpri // @description Userscript to hide/show unecessary information that takes up room on the chat sidebar // @include *://chat.stackexchange.com/* // @include *://chat.stackoverflow.com/* // @include *://chat.meta.stackexcha...
JavaScript
0
@@ -28,13 +28,8 @@ Hide -/Show Unn @@ -45,16 +45,19 @@ Info in +SE Chat%0A// @@ -129,13 +129,8 @@ hide -/show une @@ -137,16 +137,30 @@ cessary +or cluttering informat
009acc2b3ec4d18ac08bb05ff840a3721619863c
add EngagementLevel to meta
BackOffice/modules/services/EditorMetaService.js
BackOffice/modules/services/EditorMetaService.js
import R from 'ramda'; import { types, enumType, initializeTypes } from './TypesService'; import { boolAllowedValue, fromEnum } from './EditorMetaAllowedValuesService'; export default class EditorMetaService { static _instance; static get instance() { if (!EditorMetaService._instance) { EditorMetaServi...
JavaScript
0
@@ -3589,32 +3589,182 @@ g,%0A %7D,%0A + EngagementLevel: %7B%0A multipleValues: true,%0A description: %22Engagement Level%22,%0A ...types.string,%0A %7D,%0A Device
b05c618f93130418d481dcf872c1258f57dbfee8
Add Meteor.settings support for configurations
lib/server/config.js
lib/server/config.js
Config = {}; Config.captcha = { siteKey: getEnv("FIREWALL_CAPTCHA_SITE_KEY", "6LdkcgMTAAAAAJosMQhYSfKeFldhn644i9w9c4Oi"), secret: getEnv("FIREWALL_CAPTCHA_SECRET", "6LdkcgMTAAAAADftIWaISsvQ7SqIeLqHM3PWu79Q") }; Config.rateLimits = { perIp: getEnv("FIREWALL_PER_IP_MAX_RPS", 50), perHuman: getEnv("FIREWALL_PER_H...
JavaScript
0
@@ -35,27 +35,30 @@ siteKey: get -Env +Config (%22FIREWALL_C @@ -74,16 +74,44 @@ TE_KEY%22, + %22firewall.captcha.siteKey%22, %226Ldkcg @@ -157,27 +157,30 @@ secret: get -Env +Config (%22FIREWALL_C @@ -194,16 +194,43 @@ SECRET%22, + %22firewall.captcha.secret%22, %226Ldkcg @@ -300,27 +300,30 @@ perIp: get...
a2013645d8f63ea1607c57399a57f0bf994cb4b9
Add tests for importing link with formatting elements.
test/Annotations.test.js
test/Annotations.test.js
import { test } from 'substance-test' import { setCursor, setSelection, openManuscriptEditor, loadBodyFixture, isToolEnabled, openMenu, ensureValidJATS } from './shared/integrationTestHelpers' import setupTestApp from './shared/setupTestApp' import { doesNotThrowInNodejs } from './shared/testHelpers' const ANNOS = [ ...
JavaScript
0
@@ -1830,16 +1830,1011 @@ %7D)%0A%7D)%0A%0A +const FORMATTED_LINK_FIXTURE = %60%3Cp%3E%3Citalic%3E%3Cext-link%3Elink content%3C/ext-link%3E%3C/italic%3E%3C/p%3E%60%0A%0Atest(%60Annotations: link inside of formatting%60, t =%3E %7B%0A let %7B editor %7D = _setup(t, FORMATTED_LINK_FIXTURE)%0A const anno = editor.find...
9c1f56dd707574fc6f32743ffc63ed85c163a1db
Fix navigation buttons in detached window.
extension/content/firebug/navigationHistory.js
extension/content/firebug/navigationHistory.js
/* See license.txt for terms of usage */ FBL.ns(function() { with (FBL) { // ************************************************************************************************ // Constants const Cc = Components.classes; const Ci = Components.interfaces; const MAX_HISTORY_MENU_ITEMS = 15; // *************************...
JavaScript
0.000064
@@ -939,24 +939,187 @@ ry;%0A %7D,%0A%0A + reattachContext: function(browser, context)%0A %7B%0A Firebug.Module.reattachContext.apply(this, arguments);%0A%0A this.updateButtons(context);%0A %7D,%0A%0A destroyC @@ -1186,17 +1186,8 @@ bug. -Activable Modu @@ -4758,32 +4758,47 @@ ar back...
07eee47257486896f237c64c6f0aa7ecc97b66ed
Fix Pebble API detecting mmol units from settings
lib/server/pebble.js
lib/server/pebble.js
'use strict'; var _ = require('lodash'); var sandbox = require('../sandbox')(); var units = require('../units')(); var DIRECTIONS = { NONE: 0 , DoubleUp: 1 , SingleUp: 2 , FortyFiveUp: 3 , Flat: 4 , FortyFiveDown: 5 , SingleDown: 6 , DoubleDown: 7 , 'NOT COMPUTABLE': 8 , 'RATE OUT OF RANGE': 9 };...
JavaScript
0.000001
@@ -4195,21 +4195,22 @@ env. -DISPLAY_UNITS +settings.units ) ==
db8712c7ad7934f1fbbe9e45a052b1949bd0804b
remove !!
Resources/public/js/components/products/components/pricing/main.js
Resources/public/js/components/products/components/pricing/main.js
/* * This file is part of the Sulu CMS. * * (c) MASSIVE ART WebServices GmbH * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ define(['config'], function (Config) { 'use strict'; var formSelector = '#product-pricing-form', prices...
JavaScript
0
@@ -650,34 +650,32 @@ if ( -!! this.options.dat @@ -774,34 +774,32 @@ if ( -!! this.options.dat
762b7dcb7a9ed684cf3e8c1086d85a8eca9e640b
add send button to send prompt
plugins/Wallet/js/components/sendprompt.js
plugins/Wallet/js/components/sendprompt.js
import React, { PropTypes } from 'react'; const SendPrompt = ({visible, sendAddress, sendAmount, actions}) => { const onSendAddressChange = (e) => actions.setSendAddress(e.target.value); const onSendAmountChange = (e) => actions.setSendAmount(e.target.value); if (!visible) { return ( <div></div> ); } retu...
JavaScript
0
@@ -385,20 +385,47 @@ t%22%3E%0A%09%09%09%09 -Send +%3Cspan%3ESend Amount (SC): %3C/span%3E %0A%09%09%09%09%3Cin @@ -471,15 +471,8 @@ ut%3E%0A -%09%09%09%09SC%0A %09%09%09%3C @@ -518,11 +518,37 @@ %09%09%09%09 -To +%3Cspan%3ETo Address:%3C/span%3E%0A%09%09%09%09 %3Cinp @@ -600,16 +600,96 @@ %09%3C/div%3E%0A +%0...
6863c69adee81c8ba33e9b4df3e7c3e429dde507
debug added as status was not updated
media/person/js/Dashboard.js
media/person/js/Dashboard.js
FlightDeck = Class.refactor(FlightDeck, { options: {upload_package_modal: ''}, initialize: function(options) { this.previous(options); var self = this; if (document.id('upload-package')) { document.id('upload-package').addEvent('click', function(ev) { if (ev) ...
JavaScript
0
@@ -4391,24 +4391,86 @@ content) %7B%0A + $log('FD: setting ' + className + ' ' + content);%0A
eb917751b84709aadf3bbb2f8b7e8eed70d6561a
debug start of chain with new protocol.parse
lib/stores/store.js
lib/stores/store.js
/** * @author Gilles Coomans <gilles.coomans@gmail.com> * * * TODO : * - files extensions matching optimisation * - add optimised mode that do not return deep chain handle for any HTTP verb (to be used when stores are used from within a chain) * - check range object usage in chain * * * * - CLON...
JavaScript
0
@@ -895,24 +895,34 @@ n deep(deep. +when(deep. protocol.par @@ -929,16 +929,17 @@ se(name) +) .done(fu
657118bc4527985740040ce14f29c9858fa290f4
Remove options from slate new command
packages/slate-cli/commands/new.js
packages/slate-cli/commands/new.js
var path = require('path'); var findRoot = require('find-root'); var utils = require('../includes/utils.js'); var msg = require('../includes/messages.js'); var slateRoot = path.resolve(__dirname, '..'); var destRoot = process.cwd(); module.exports = { command: function(args/*, options*/) { if (args.length === 0...
JavaScript
0.000001
@@ -1049,20 +1049,8 @@ rgs%5D - %5B--options%5D ',%0A
b594cd21b327ad92341bbd87ae7c5464e79459d9
Fix typo (#5223)
www/src/examples/Alert/DismissibleControlled.js
www/src/examples/Alert/DismissibleControlled.js
function AlertDismissible() { const [show, setShow] = useState(true); return ( <> <Alert show={show} variant="success"> <Alert.Heading>How's it going?!</Alert.Heading> <p> Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. ...
JavaScript
0.998413
@@ -556,10 +556,10 @@ me y -a ' +a ll!%0A
c66af9262cbd224dbc3cfe70f234d2e86f6784a7
Fix batch usage memory leaks
manifest.js
manifest.js
/** * Events: * dependenciesChange(differences, manifest, user, repo, private) - When one or more dependencies for a manifest change * devDependenciesChange(differences, manifest, user, repo, private) - When one or more devDependencies for a manifest change * peerDependenciesChange(differences, manifest, user, repo...
JavaScript
0.000007
@@ -2208,21 +2208,129 @@ er) -return cb(er) +%7B%0A console.error(%22Failed to get package.json%22, er)%0A return batch.call(batchKey, function (cb) %7B cb(er) %7D)%0A %7D %0A%0A @@ -2729,24 +2729,91 @@ f (!data) %7B%0A + console.error(%22Failed to parse package.json: %22, packageJson)%0A ...
ba333dc4b0df6bedce3f9048fa20138e19b9c6d6
rework export order
docs/color-variables.js
docs/color-variables.js
import titleCase from 'title-case' import primerColors from 'primer-colors' import colorSystemSCSS from '!!raw-loader?module!../src/support/variables/color-system.scss' import colorVariablesSCSS from '!!raw-loader?module!../src/support/variables/colors.scss' export const variables = {} parseSCSSVariables(colorSystem...
JavaScript
0
@@ -254,23 +254,16 @@ .scss'%0A%0A -export const va @@ -492,23 +492,16 @@ be safe%0A -export const gr @@ -585,23 +585,16 @@ pink'%5D%0A%0A -export const co @@ -743,23 +743,36 @@ ey%5D)%0A%7D%0A%0A -export +const aliases = %7B%7D%0A%0A const gr @@ -1278,16 +1278,55 @@ %7Bindex%7D%60 +,%0A aliases: (ali...
93e92a6f10c453f6d601d87f54660f647bbc8d03
add userAgent to client id.
public/js/app-middle.js
public/js/app-middle.js
(function (window, io, $, _, Backbone, location, app) { // "use strict"; var ID = "id", watchedEvents = {}; app.middle = app.middle || {}; function getServerURL() { //For now, we are assuming that socket.io is hosted locally. return ""; } function convert(arg) { ...
JavaScript
0
@@ -3383,24 +3383,83 @@ ow.device %7C%7C + %7B%7D,%0A userAgent = navigator.userAgent %7C%7C %7B%7D;%0A%0A @@ -3782,16 +3782,58 @@ .cordova +,%0A userAgent: userAgent %0A