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
5684e73b7cf946c67ac4c1c18c28c7b74628be75
Change reference to this as self [skip ci]
website/static/js/pages/home-page.js
website/static/js/pages/home-page.js
var SignUp = require('../signUp.js'); new SignUp('#signUpScope', '/api/v1/register/'); var TweenLite = require('TweenLite'); require('EasePack'); require('vendor/youtube'); // ANIMATION FOR FRONT PAGE $( document ).ready(function() { $('#logo').removeClass('off'); $('.youtube').YouTubeModal({autoplay:1, width:...
JavaScript
0
@@ -5479,21 +5479,20 @@ var -_this +self = this; @@ -5550,21 +5550,20 @@ -_this +self .pos = p @@ -5586,21 +5586,20 @@ -_this +self .radius @@ -5625,21 +5625,20 @@ -_this +self .color = @@ -5717,21 +5717,20 @@ if(! -_this +self .active) @@ -5791,21 +5791,20 @@ arc( -_thi...
8253093a2bd1dc5c16fafc4ced340d4ab46174ac
Clean up comment
js/indexedDB.js
js/indexedDB.js
import IdbKvStore from "idb-kv-store"; import { throttle } from "./utils"; const LOCAL_STORAGE_KEY = "webamp_state"; export async function bindToIndexedDB(webamp, clearState, useState) { const localStore = new IdbKvStore("webamp_state_database"); if (clearState) { try { await localStore.clear(); } c...
JavaScript
0
@@ -607,17 +607,17 @@ the save -s +d state f
58206c902cbfb58e48afa3bc3a7634bd04737113
Fix bug with entries array not getting truncated
src/ui/ArrayInput.js
src/ui/ArrayInput.js
import { select, event } from 'd3-selection'; import { color } from 'd3-color'; import { className } from './utils'; /** * Get a color as #rrggbb for input type='color' */ function colorString(value) { const asColor = color(value); const r = asColor.r.toString(16); const g = asColor.g.toString(16); const b =...
JavaScript
0
@@ -6187,14 +6187,71 @@ ove());%0A + this.entries = this.entries.slice(0, values.length);%0A %7D%0A%7D%0A
27b339ddeb07b7c00a58b047240b9d599c3ed8bb
Support json schema URIs
schema/spec.js
schema/spec.js
export default { "defs": { "spec": { "title": "Vega visualization specification", "type": "object", "allOf": [ {"$ref": "#/defs/scope"}, { "properties": { "schema": { "type": "object", "properties": { "language": {...
JavaScript
0
@@ -211,16 +211,17 @@ %22 +$ schema%22: @@ -226,193 +226,41 @@ %22: %7B -%0A %22type%22: %22object%22,%0A %22properties%22: %7B%0A %22language%22: %7B%22enum%22: %5B%22vega%22%5D%7D,%0A %22version%22: %7B%22type%22: %22string%22%7D%0A %7D%0A...
644722b03afad3402de57ca89380fbc05d48b890
Remove result after query string changes.
scripts/app.js
scripts/app.js
(function () { "use strict"; var sparql; sparql = angular.module("sparql", []); sparql.factory("rdfstore", function () { var store; store = null; return { getStore: function (callback) { if (store === null) { rdfstore.create({ ...
JavaScript
0.000002
@@ -2509,32 +2509,180 @@ %7D%0A %7D;%0A + $scope.$watch(%22queryString%22, function () %7B%0A $scope.sparqlResult = %5B%5D;%0A $scope.sparqlResultVariables = %5B%5D;%0A %7D);%0A %7D);%0A%0A spa
a9e189cacd46690c7e42f69872ad1bc22d2dd4cd
fix deep equal utility
src/utils/generic.js
src/utils/generic.js
export function deepAssign (target, ...sources) { sources.forEach((source) => { forOwn(source, (property) => { if (isObject(source[property])) { if (!target[property] || !isObject(target[property])) { target[property] = {}; } deepAssign(target[property], source[property]); } else { target[...
JavaScript
0.000001
@@ -473,16 +473,31 @@ y) =%3E %7B%0A +%09%09if (bool) %7B%0A%09 %09%09if (is @@ -524,16 +524,17 @@ ty%5D)) %7B%0A +%09 %09%09%09bool @@ -583,16 +583,17 @@ ty%5D);%0A%09%09 +%09 %7D else i @@ -647,16 +647,20 @@ false;%0A +%09%09%7D%0A %09%7D);%0A%09re
53e60b640550b072906ee24d7310805c3d9fe9cb
exit status 1 if tests fail
javascript/gulpfile.js
javascript/gulpfile.js
var browserify = require('browserify'); var gulp = require('gulp'); var gutil = require('gulp-util'); var source = require("vinyl-source-stream"); var reactify = require('reactify'); var watchify = require('watchify'); var uglify = require('gulp-uglify'); var buffer = require('vinyl-buffer'); var concat = require('gulp...
JavaScript
0
@@ -1675,48 +1675,37 @@ r', -function()%7B%0A process.exit(1);%0A %7D +process.exit.bind(process, 1) )%0A @@ -1826,16 +1826,64 @@ tomjs()) +%0A .on('error', process.exit.bind(process, 1)) ;%0A%7D);%0A%0Ag
67097ed2c3c1bb9122ab8ba9e33ee0af1722ce51
Update services.js
wordmapper/client/src/js/services.js
wordmapper/client/src/js/services.js
module.exports = { ImportExportService: require('./services/import_export.js'), Persistence: require('./services/persistence.js'), StorageLocal: require('./services/storage_local.js'), StorageRemote: require('./services/storage_remote.js') };
JavaScript
0.000001
@@ -124,25 +124,26 @@ tence.js'),%0A -%09 + StorageLocal @@ -188,9 +188,10 @@ '),%0A -%09 + Stor
13c5ee09b524c38fc70e92b11d188c8d26864a83
expand conditional
lib/appBuilder.js
lib/appBuilder.js
/* * Copyright (c) 2015 Limerun Project Contributors * Portions Copyright (c) 2015 Internet of Protocols Assocation (IOPA) * * 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 * * htt...
JavaScript
0.999426
@@ -1362,16 +1362,54 @@ dleware%5D +,%0A %22server.ExpandContext%22: true, %0A %7D); @@ -1495,16 +1495,81 @@ e = %5B%5D;%0A + %0A this.expand = this.properties%5B%22server.ExpandContext%22%5D ;%0A %7D%0A%0Aexpor @@ -2457,22 +2457,8 @@ t)%7B%0A - try %7B%0A @@ -2745,166 +2745,8 @@ )%0A ...
02a4b0c5685a222d14d51d81d5f41b50632b7d43
Update parameters passed to CloudAppX.makepri
lib/appPackage.js
lib/appPackage.js
var fs = require('fs'), os = require('os'), path = require('path'), url = require('url'); var archiver = require('archiver'), cloudappx = require('cloudappx-server'), Q = require('q'), request = require('request'); var manifoldjsLib = require('manifoldjs-lib'); var CustomE...
JavaScript
0.000001
@@ -2160,17 +2160,17 @@ ue = '/v -2 +3 /' + ope @@ -4029,102 +4029,54 @@ rn Q -(%7B 'dir': appFolder, 'name': 'resources', 'out': appFolder %7D)%0D%0A .then(cloudappx.makePri +.fcall(cloudappx.makePri, appFolder, appFolder )%0D%0A @@ -4229,35 +4229,32 @@ catch(function ( -err ) %7B%0D%0A l @@ -45...
abe7faa289b1247861fcc22b46ee085edf6b4a45
use valid identifier.
src/Control/Monad/Eff/JQuery.js
src/Control/Monad/Eff/JQuery.js
/* global exports */ "use strict"; // module Control.Monad.Eff.JQuery exports.ready = function(func) { return function() { jQuery(document).ready(func); }; }; exports.select = function(selector) { return function() { return jQuery(selector); }; }; exports.find = function(selector) { ...
JavaScript
0.000114
@@ -3802,17 +3802,15 @@ orts -.on$prime +%5B%22on'%22%5D = f
9a3b178fc453401c8664c26eb3de89feba6489e9
Fix the cdn path of the images for Amazon s3
grunt/cdn.js
grunt/cdn.js
// CDN will replace local paths with your CDN path module.exports = { cloudfiles: { options: { cdn: '<%= secrets.cloudfiles.uri %>', // See README for secrets.json or replace this with your cdn uri flatten: true, supportedTypes: 'html' }, cwd: './<%= paths.dist %>', dest: './<%= path...
JavaScript
0.98465
@@ -427,37 +427,8 @@ /%3C%25= - secrets.s3.bucketname %25%3E/%3C%25= sec
c44796bdfc47dd51859233eb934a7befe61fb5ba
fix grunt watch paths
gruntfile.js
gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), appName: 'SampleApp', appDir: 'app', cssDir: '<%= appDir %>/css', sassDir: '<%= appDir %>/scss', appScss: '<%= sassDir %>/styles.scss', appCss: '<%= cssDir %>/styl...
JavaScript
0.000001
@@ -1276,28 +1276,27 @@ iles: %5B'%3C%25= -sass +app Dir %25%3E/**/*. @@ -1299,24 +1299,25 @@ */*.scss', ' +! %3C%25= appDir %25 @@ -1322,23 +1322,27 @@ %25%3E/ -parts/**/*.scss +bower_components/** '%5D,%0A @@ -1575,15 +1575,19 @@ %25%3E/* +*/* .js', ' +! %3C%25= @@ -1600,21 +1600,27 @@ %25%3E/ -parts/**...
4c6512b197fef9e39b6a936fb6fe83be4724e735
Correct name for options
gruntfile.js
gruntfile.js
/* globals module:false, require:false */ module.exports = function (grunt) { 'use strict'; // load all grunt tasks matching the 'grunt-*' pattern require('load-grunt-tasks')(grunt); grunt.initConfig({ karma: { unit: { configFile: 'karma.conf.js', s...
JavaScript
0.995712
@@ -754,14 +754,14 @@ -script +option s: %7B @@ -884,42 +884,8 @@ alse -,%0A pushTo: 'origin' %0A
87a74307b673648c2d5869847e51fa41bf72f072
update gruntfile.js to let jshint adhere to .jshintrc
gruntfile.js
gruntfile.js
module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { jade: { files: ['app/views/**'], options: { livereload: true, }, }, ...
JavaScript
0
@@ -880,16 +880,39 @@ all: + %7B%0A src: %5B'grunt @@ -992,32 +992,127 @@ , 'app/**/*.js'%5D +,%0A options: %7B%0A jshintrc: true%0A %7D%0A %7D %0A %7D,%0A @@ -2773,8 +2773,9 @@ t'%5D);%0A%7D; +%0A
61a446701e2b193dfb29631b0290e28010afefc9
Remove execCommand
lib/connection.js
lib/connection.js
var Bluebird = require('bluebird'); var Client = Bluebird.promisifyAll(require('ssh2').Client); var errors = require('./errors'); function Connection(options) { this.host = options.host; this.username = options.username; this.debug = options.debug; this.options = options; this._connection = new Client(); ...
JavaScript
0.000022
@@ -1538,867 +1538,8 @@ %7D,%0A%0A - execCommand: function execCommand(command) %7B%0A var _this = this;%0A var stdout = '';%0A var stderr = '';%0A this._log('Exec command %22' + command + '%22');%0A return this._connection%0A .execAsync(command)%0A .then(function (stream) %7B%0A retur...
7470d49b74e1797987d20035f002a3ec91b47c97
Add default value for map center
addon/components/flexberry-map.js
addon/components/flexberry-map.js
import Ember from 'ember'; import layout from '../templates/components/flexberry-map'; import ContainerMixin from 'ember-flexberry-gis/mixins/layercontainer'; export default Ember.Component.extend(ContainerMixin, { layout, model: undefined, center: Ember.computed('model.lat', 'model.lng', function () { ret...
JavaScript
0
@@ -347,16 +347,21 @@ el.lat') + %7C%7C 0 , this.g @@ -375,16 +375,21 @@ el.lng') + %7C%7C 0 );%0A %7D),
8ec960ac98bc0c9193b592a88ed01c3d3d995a06
Support watching sass/scss files with grunt
gruntfile.js
gruntfile.js
'use strict'; module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), assets: grunt.file.readJSON('config/assets.json'), watch: { js: { files: ['gruntfile.js', 'server.js', 'app/**/*.js', 'publi...
JavaScript
0
@@ -820,32 +820,232 @@ %7D%0A + %7D,%0A sass: %7B%0A files: %5B'assets/sass/**/*.scss'%5D,%0A tasks: %5B'sass'%5D,%0A options: %7B%0A livereload: true%0A %7D%0A %7D%0A
debe3ba58faf44a9b6eefb3d0d2131be51d9ecaa
Add assertion comment, https://github.com/phetsims/phet-io/issues/1141
js/BarrierRectangle.js
js/BarrierRectangle.js
// Copyright 2017, University of Colorado Boulder /** * Semi-transparent black barrier used to block input events when a dialog (or other popup) is present, and fade out * the background. * * @author - Michael Kauzmann (PhET Interactive Simulations) */ define( function( require ) { 'use strict'; // modules ...
JavaScript
0
@@ -1473,16 +1473,62 @@ ngth %3E 0 +, 'There must be a Node in the stack to hide.' );%0A
ba5a627fb5cf09ebfbce8143a5a77bf2a3d57c87
Add jshint to the "release" task.
gruntfile.js
gruntfile.js
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. (function () { "use strict"; module.exports = function (grunt) { var config = require("./config.js"); // Make su...
JavaScript
0.000002
@@ -1390,22 +1390,29 @@ ase%22, %5B%22 -defaul +jshint%22, %22tes t%22, %22ugl @@ -1826,24 +1826,74 @@ %22jshint%22%5D);%0A + grunt.registerTask(%22minify%22, %5B%22uglify%22%5D);%0A %7D;%0A%7D)();
6b5161b733c55403a8da393912732a0a5d97cefb
remove extra hr in about
js/components/about.js
js/components/about.js
// Create the features component. var features = { // Create the view-model. vm: { init: function() { console.log ("about features vm init"); } }, // Create the controller. controller: function() { features.vm.init (); }, // Create the view. view: function() { // Kickstarter vi...
JavaScript
0
@@ -4585,58 +4585,8 @@ %5D), -%0A%0A m(%22hr%22, %7Bclass: %22hr-gradient%22%7D),%0A%0A // %0A
a6c8507f17be33a385d64bddbb85b544f2c953ca
fix appveyor
gruntfile.js
gruntfile.js
'use strict'; module.exports = function(grunt) { // Load grunt tasks automatically require('load-grunt-tasks')(grunt); // Time how long tasks take. Can help when optimizing build times require('time-grunt')(grunt); grunt.initConfig({ // Set this variables for different projects projectName: 'h-op...
JavaScript
0.000001
@@ -2171,16 +2171,17 @@ ckages/' +, %0A%09%09%09%09opt
04f1d82892e9c83789fc6dfcad79d6aa8cb96a3c
update PaggingSize
src/_PaggingSize/PaggingSize.js
src/_PaggingSize/PaggingSize.js
/** * @file PaggingSize component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import DropdownSelect from '../DropdownSelect'; export default class PaggingSize extends Component { static propTypes = { className: Pro...
JavaScript
0
@@ -215,23 +215,8 @@ ';%0A%0A -export default clas @@ -254,367 +254,8 @@ %7B%0A%0A - static propTypes = %7B%0A%0A className: PropTypes.string,%0A style: PropTypes.object,%0A%0A pageSize: PropTypes.number,%0A pageSizes: PropTypes.array,%0A%0A onPageSizeChange: PropTypes.func%0A...
e92d80ddb38d96e51a32f6803484d4b40b95774a
clean code
data/js/map.ui.js
data/js/map.ui.js
/* Copyright (c) 2012-2016 The TagSpaces Authors. All rights reserved. * Use of this source code is governed by a AGPL3 license that * can be found in the LICENSE file. */ /* global define, Handlebars, isNode, isFirefox */ define(function(require, exports, module) { 'use strict'; console.log('Loading map.ui.js ....
JavaScript
0.000008
@@ -4104,35 +4104,8 @@ ) %7B%0A - console.log(e.latlng);%0A
846ca1976e096bbb7962c91bb53537187cfc4077
Set store.firestore to firestoreInstance. Fixes #19
src/enhancer.js
src/enhancer.js
import { defaultConfig } from './constants'; import createFirestoreInstance from './createFirestoreInstance'; let firestoreInstance; /** * @name reduxFirestore * @external * @description Redux store enhancer that accepts configuration options and adds * store.firestore. Enhancers are most commonly placed in redux...
JavaScript
0
@@ -2296,27 +2296,28 @@ store = fire -bas +stor eInstance;%0A%0A
54e26cb46b06d6abce6b04b344201e880a00556c
fix some typos in description strings
source/views/settings/screens/push-notifications/ios-settings-button.js
source/views/settings/screens/push-notifications/ios-settings-button.js
// @flow import * as React from 'react' import {Linking} from 'react-native' import {appName} from '@frogpond/constants' import {Section, PushButtonCell} from '@frogpond/tableview' type Props = { pushesEnabled: boolean, hasPrompted: boolean, onEnable: () => any, } export function IosNotificationSettingsButton(pro...
JavaScript
0.999999
@@ -784,25 +784,24 @@ %60$%7BonString%7D -. You can tur @@ -1364,17 +1364,16 @@ fString%7D -. You can
46f2f77cfb4d00d3a1d2acd30a23563db0ef56f3
fix bug : notification wasn't disappear if dismissAfter was null
src/helpers/index.js
src/helpers/index.js
import {STATUS} from '../constants'; /** * Convert status in a understandable status for the Notification component * @param {String|Number} status * @returns {String} status an understandable status */ export function convertStatus(status) { const reHttpStatusCode = /^\d{3}$/; // convert HTTP status code if...
JavaScript
0.000003
@@ -1214,16 +1214,53 @@ tion) %7B%0A + if (notification.dismissAfter) %7B%0A notifi @@ -1318,16 +1318,20 @@ After);%0A + %7D%0A if (no
a77a5b659c1921d6425ea58c3be813e1d80bdb85
Fix regex to allow relative urls.
src/Backend/Core/Js/ckeditor/plugins/medialibrary/dialogs/linkDialog.js
src/Backend/Core/Js/ckeditor/plugins/medialibrary/dialogs/linkDialog.js
CKEDITOR.dialog.add( 'linkDialog', function (editor) { var urlRegex = 'https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}(\\.[a-z]{2,6})?\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)'; return { title: 'Add link', minWidth: 400, minHeight: 200, contents: [...
JavaScript
0.000001
@@ -80,16 +80,17 @@ egex = ' +( https?:%5C @@ -153,11 +153,13 @@ 6%7D)? +)? %5C%5C -b +/ (%5B-a
e140e5644c09ef3d5733ff4d92a5bcb96ae36011
undo fix from other PR
new-lamassu-admin/src/components/layout/Sidebar.js
new-lamassu-admin/src/components/layout/Sidebar.js
import { makeStyles } from '@material-ui/core/styles' import classnames from 'classnames' import React from 'react' import { P } from 'src/components/typography' import { ReactComponent as CompleteStageIconZodiac } from 'src/styling/icons/stage/zodiac/complete.svg' import { ReactComponent as CurrentStageIconZodiac } f...
JavaScript
0
@@ -805,17 +805,16 @@ data -? .map((it
ce08fb465a394a819796e8977c3ff2e0b4d190b5
Reformat (tidy) Javascript
src/inject/inject.js
src/inject/inject.js
chrome.extension.sendMessage({}, function(response) { var readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { // This runs when page is done loading. // TODO Document whe the interval is cleared. clearInterval(readyStateCheckInterval); } }, 10); ...
JavaScript
0
@@ -47,16 +47,18 @@ onse) %7B%0A + var re @@ -102,24 +102,28 @@ unction() %7B%0A + if (docu @@ -158,24 +158,30 @@ e%22) %7B%0A + + // This runs @@ -211,24 +211,30 @@ ing.%0A%0A + + // TODO Docu @@ -240,17 +240,17 @@ ument wh -e +y the int @@ -273,16 +273,22 @@ .%0A ...
b6af4714757e19f4f20d02fdf42462d3bf86b7a8
Use EasyWiki as title if not available.
src/inject/inject.js
src/inject/inject.js
var statusa; chrome.extension.sendRequest({msg: "getStatus"}, function(response) { if (response.status == 1) { statusa = true; } else { statusa = false; } }); WIKI_URL_REGEX = /^((http|https):\/\/)?[a-z]+.wikipedia.org\/wiki\/[a-zA-Z0-9_()#%,.!-]+$/i CLASS_MATCHER = /easy-wiki-popover/i var extrac...
JavaScript
0
@@ -2205,16 +2205,30 @@ popTitle + %7C%7C 'EasyWiki' ,%0A%09%09%09%09%09%09
fa4b2be9cd095640c6e7e69907ff8b57560faadf
Allow enabling and disabling switcher
src/jquery.geokbd.js
src/jquery.geokbd.js
(function($, undefined) { $.fn.geokbd = function(options) { var isOn, inputs = $([]), switchers = $([]), defaults = { on: true, hotkeys: ['~', '`'] }, settings = (typeof options === 'object' ? $.extend({}, defaults, options) : defaults); // first come up with affected set of input elements this.each(func...
JavaScript
0
@@ -66,16 +66,33 @@ %0A%09isOn,%0A +%09enabled = true,%0A %09inputs @@ -100,16 +100,16 @@ $(%5B%5D),%0A - %09switche @@ -707,24 +707,42 @@ gleLang() %7B%0A +%09%09%09if(enabled) %7B%0A%09 $('.sw @@ -775,16 +775,17 @@ -kbd');%0A +%09 is @@ -796,16 +796,17 @@ !isOn;%0A +%09 $( @@ -839,16 +8...
b89b40a4de75eedfd6fd18ba48da5013ad8082a5
test fix
mpwo_client/e2e/admin-sports.test.js
mpwo_client/e2e/admin-sports.test.js
import { Selector } from 'testcafe' import { TEST_URL } from './utils' // database must be initialiazed const adminEmail = 'admin@example.com' const adminPassword = 'mpwoadmin' // eslint-disable-next-line no-undef fixture('/admin/sports').page(`${TEST_URL}/admin/sports`) test('admin should be able to access sports...
JavaScript
0
@@ -719,20 +719,10 @@ or(' -.sport-items +TD ').w @@ -752,12 +752,11 @@ s).ok()%0A -%0A %7D)%0A
05a545d16f3fa1beaf64ddf849ea88cde592042b
Update mainClient.js
src/js/mainClient.js
src/js/mainClient.js
import CanvasStreamerClient from './canvasStreamerClient';
JavaScript
0
@@ -52,8 +52,60 @@ lient';%0A +window.CanvasStreamerClient = CanvasStreamerClient;%0A
3f2834a9c7559d4f9c42643dd3d7ea159da2ad00
Move module initialize code to addModule.
src/js/summernote.js
src/js/summernote.js
define([ 'jquery', 'summernote/base/core/func', 'summernote/base/core/list' ], function ($, func, list) { /** * @param {jQuery} $note * @param {Object} options * @return {Context} */ var Context = function ($note, options) { var self = this; var ui = $.summernote.ui; this.modules = {...
JavaScript
0
@@ -620,24 +620,27 @@ -var module = new +self.addModule(key, sel @@ -665,136 +665,8 @@ key%5D -(self);%0A if (module.initialize) %7B%0A module.initialize.apply(module);%0A %7D%0A self.addModule(key, module );%0A @@ -1851,19 +1851,153 @@ ey, -instance) %7B +ModuleClass) %7B%0A ...
be2ea1d95b5e4764ec9255c1ec3c09db1ab92c14
Add an error call back param
src/lib/GoogleApi.js
src/lib/GoogleApi.js
export const GoogleApi = function(opts) { opts = opts || {}; if (!opts.hasOwnProperty('apiKey')) { throw new Error('You must pass an apiKey to use GoogleApi'); } const apiKey = opts.apiKey; const libraries = opts.libraries || ['places']; const client = opts.client; const URL = opts.url || 'https://m...
JavaScript
0
@@ -896,16 +896,49 @@ : region +,%0A onError: 'ERROR_FUNCTION' %0A %7D;%0A
89525bed41c67e1898cf0289cbe26c408f73c902
add correct name for Chinese
src/lib/api/langs.js
src/lib/api/langs.js
import Promise from 'bluebird'; import _ from 'lodash'; export const langs = { en: { slug: "en", label: "EN", name: "English" }, de: { slug: "de", label: "DE", name: "Deutsch" }, es: { slug: "es", label: "ES", name: "Español" }, fr: { slug: "fr", label: "FR", name: "Français" }, zh: {...
JavaScript
0.999996
@@ -342,10 +342,10 @@ l: %22 -ZH +%E4%B8%AD%E6%96%87 %22,%0A%09 @@ -356,15 +356,10 @@ e: %22 -Chinese +%E4%B8%AD%E6%96%87 %22%0A%09%7D
c3a20f529b55eba26e2d577b20aa5dfd00ee7e01
remove unneeded comment
dom/src/index.js
dom/src/index.js
import most from 'most' import hold from '@most/hold' import snabbdom from 'snabbdom' import h from 'snabbdom/h' const { a, abbr, address, area, article, aside, audio, b, base, bdi, bdo, blockquote, body, br, button, canvas, caption, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, embed, fieldset...
JavaScript
0
@@ -4622,32 +4622,9 @@ p(1) - // emits rootElem first +%0A %0A
6caaa7492c97d50ccd33ada441a81a1e9703b684
Fix bug in search results - Multiple switches fail as state wasn't being bubbled back up properly
discord-client/src/commands/searchResults.js
discord-client/src/commands/searchResults.js
const { formatHaiku } = require('../formatHaiku'); const messageFromResults = (searchResults, index) => `Found ${searchResults.length} haiku${searchResults.length !== 1 ? 's' : ''}: Showing result (${index + 1})`; // Cycle through search results // indexDelta should be -1 on left, +1 on right const switchResults = as...
JavaScript
0
@@ -779,24 +779,33 @@ ex: newIndex +, context %7D;%0A %7D%0A re @@ -838,16 +838,25 @@ entIndex +, context %7D;%0A%7D;%0A%0A @@ -870,16 +870,22 @@ nReact = + async (messag @@ -1030,32 +1030,38 @@ '%E2%AC%85': newState = + await switchResults(s @@ -1153,16 +1153,22 @@ wState = + await switchR
7763e8993fdd1bdd6dc33079c9822e5c47e66c52
clean up group component props
src/victory-container/victory-container.js
src/victory-container/victory-container.js
import React, { PropTypes } from "react"; import { assign, omit } from "lodash"; import Portal from "../victory-portal/portal"; import { Timer } from "../victory-util/index"; export default class VictoryContainer extends React.Component { static displayName = "VictoryContainer"; static propTypes = { className...
JavaScript
0.000001
@@ -1695,55 +1695,17 @@ one -=== true %7C%7C this.props.standalone === undefined +!== false ?%0A @@ -2354,35 +2354,17 @@ one -%7C%7C standalone === undefined +!== false ?%0A @@ -2728,92 +2728,8 @@ e%7D%3E%0A - %3Ctitle id=%22title%22%3E%7Btitle%7D%3C/title%3E%0A %3Cdesc id=%22desc%22%3E%7Bd...
42ad97caef150934bd4605e0893185bdd9a5742b
fix filename
src/views/PostDetailView/PostDetailView.js
src/views/PostDetailView/PostDetailView.js
import React, {PropTypes, Component} from 'react' import { connect } from 'react-redux' import { actions } from '../../redux/modules/post' import { Link } from 'react-router' import CommentCard from 'components/CommentCard' import CommentEditor from 'Components/CommentEditor' import Card from 'material-ui/lib/card/card...
JavaScript
0.998679
@@ -244,17 +244,17 @@ r from ' -C +c omponent
47ab485aa66aa74f4d4cf8e0c733788c4a271fd1
Make loading source maps safer (#5095)
src/actions/sources/newSources.js
src/actions/sources/newSources.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ // @flow /** * Redux actions for the sources state * @module actions/sources */ import { syncBreakpoint } f...
JavaScript
0
@@ -1099,20 +1099,283 @@ %7D;%0A%7D%0A%0A +// TODO: It would be nice to make getOriginalURLs a safer api%0Aasync function loadOriginalSourceUrls(sourceMaps, generatedSource) %7B%0A try %7B%0A return await sourceMaps.getOriginalURLs(generatedSource);%0A %7D catch (e) %7B%0A console.error(e);%0A return null...
1ee8f0447a3cee59c695276256ff1d67f6d465ad
Create embed theme for STT
plugins/livedesk-embed/gui-resources/scripts/js/core/utils/str.js
plugins/livedesk-embed/gui-resources/scripts/js/core/utils/str.js
define(['utils/utf8'],function(utf8){ str = function(str){ this.init(str); } str.prototype = { init: function(str) { this.str = str; }, format: function() { var arg = arguments, idx = 0; if (arg.length == 1 && typeof arg[0] == 'object') arg = arg[0]; return this.str.replace(/%?%(?:\(([^\)]+)...
JavaScript
0
@@ -30,17 +30,17 @@ n(utf8)%7B -%0D +%0A %09str = f @@ -52,17 +52,17 @@ on(str)%7B -%0D +%0A %09%09this.i @@ -74,12 +74,12 @@ tr); -%0D%09%7D%0D +%0A%09%7D%0A %09str @@ -92,17 +92,17 @@ type = %7B -%0D +%0A %09%09init: @@ -116,17 +116,17 @@ n(str) %7B -%0D +%0A %09%09%09this. @@ -139,15 +139,15 @@ str; -%0D...
9c2071517b629d69e0f3d98a738064fc76ff2bfa
upgrade flexible.js
src/flexible.js
src/flexible.js
/** * author: WangLe * github: [https://github.com/jiankafei] * 博客: [https://jiankafei.github.io/] */ ;(function(G, lib){ 'use strict'; var doc = G.document, de = doc.documentElement, vp = doc.querySelector('meta[name=viewport]'), ua = G.navigator.appVersion, ds = 750, // 设计稿大小 maxW = 540, // 最大字体宽度 r...
JavaScript
0.000001
@@ -618,32 +618,11 @@ %E7%B4%A0%0A%09%09 -getW = function()%7Breturn +w = de. @@ -650,17 +650,16 @@ ().width -%7D ; // %E5%AE%BD%E5%BA%A6%0A @@ -2680,26 +2680,8 @@ ();%0A -%09%09var w = getW();%0A %09%09w @@ -2702,16 +2702,40 @@ maxW);%0A +%09%09console.log('w: '+w);%0A %09%09var re
7881fc2c690dc6a7ab5b4194304731d3501390d0
fix network handler test
test/businessTier/networkHandler/networkHandlerSpec.js
test/businessTier/networkHandler/networkHandlerSpec.js
/*jshint node: true, -W106 */ 'use strict'; /* * Name : networkHandlerSpec.js * Module : UnitTest * Location : /test/businessTier/networkHandler * * History : * * Version Date Programmer Description * ========================================================= * 0.0.1 2015-05-29 Samuele Zanella ...
JavaScript
0.000001
@@ -820,16 +820,23 @@ ('../../ +../lib/ presenta
130893b601bd94600e569058d5cce47194957981
Fix TS2307 Cannot find module 'cesium/Sou.. error
scripts/webpack.common.js
scripts/webpack.common.js
/** * Webpack common configuration. * it: * - Define the app entry point (./src) -> Where webpack will start compiling/bundling * - Define where assets will be served at by our webserver (static/) * - Clean previous build on each build * - Generates the index.html file automatically by injecting bundled assets i...
JavaScript
0.000001
@@ -1355,16 +1355,29 @@ ,%0A +path.resolve( %22../node @@ -1385,16 +1385,17 @@ modules%22 +) ,%0A %5D. @@ -2118,16 +2118,179 @@ )%0A %5D,%0A + amd: %7B%0A // Enable webpack-friendly use of require in Cesium%0A toUrlUndefined: true%0A %7D,%0A node: %7B%0A // Resolve node module use of fs%0A ...
f3f05a08e798245f0aa21035c4850aabc202e0f4
fix issues with Base#destroy
domkit/ui/base.js
domkit/ui/base.js
define( ['jquery', 'domkit/domkit', 'domkit/util/touchclickcanceller'], function ($, Domkit, TouchClickCanceller) { var _DATA_FIELD_KEY = '_data_dk_object'; // Base extends any HTML element, giving providing common behaviors for all // domkit ui elements. // Arguments: // jQueryOrDomID: A CSS style...
JavaScript
0
@@ -994,18 +994,18 @@ ype.dest -o r +o y = func
124dde6d61bded5fabfd9861f429623779642c20
fix due date display
src/admin/redux/modules/member.js
src/admin/redux/modules/member.js
/* @flow */ const { createAction, handleAction } = require('redux-actions') const { stopSubmit } = require('redux-form') const { flip, replace, compose, map, prop, concat, converge, contains , mergeAll, unapply, cond, T, identity, is, reject, propOr, chain, keys , path, reduce, assoc, join, values, equals, assocPat...
JavaScript
0.000002
@@ -339,16 +339,23 @@ lensProp +, slice %7D =%0A @@ -500,63 +500,8 @@ ed') -%0Aconst %7B format_due_date %7D = require('app/format_date') %0A%0Aim @@ -2706,23 +2706,33 @@ '), -format_due_date +slice(0, -'/YYYY'.length) )%0A
00181a6b43e0c2d8dd6004f41587e3aa3e24a916
Test failure to initialize during first-run
test/firstrun/components/master-password-setup-test.js
test/firstrun/components/master-password-setup-test.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import waitUntil from "async-wait-until"; import chai, { expect } from "chai"; import chaiEnzyme from "chai-enzyme...
JavaScript
0.000001
@@ -1801,13 +1801,428 @@ );%0A %7D); +%0A%0A it(%22catch failures to initialize%22, async() =%3E %7B%0A browser.runtime.onMessage.mockClearListener();%0A browser.runtime.onMessage.addListener(() =%3E %7B%0A throw new Error();%0A %7D);%0A wrapper.find('button%5Btype=%22submit%22%5D').simulate(%22subm...
c1bcd24ace87b9a78b94f67186fc6f704898a2b6
fix the test case on user admin controller
test/tests/controllers/admin/users/rgiUserAdminCtrl.js
test/tests/controllers/admin/users/rgiUserAdminCtrl.js
'use strict'; /*jslint nomen: true newcap: true */ var describe, beforeEach, afterEach, it, inject, expect, sinon; describe('rgiUserAdminCtrl', function () { beforeEach(module('app')); var $scope, rgiUserSrvc, rgiAssessmentSrvc; beforeEach(inject( function ($rootScope, $controller, _rgiUserSrvc_, ...
JavaScript
0.000007
@@ -1,12 +1,35 @@ +/*jslint node: true */%0A 'use strict' @@ -70,16 +70,19 @@ e */%0Avar + _, describ @@ -496,16 +496,88 @@ tSrvc_;%0A + /*jshint unused: true*/%0A /*jslint unparam: true*/ %0A @@ -675,34 +675,34 @@ %7Bassessment_ -id +ID : 'assessment-0- @@ -734,34 +734,34 @@ ...
9391de4702f07d6269d21d1f83bae558f5c70e42
use the oribella instance from dependencies
src/gestures.js
src/gestures.js
import {customAttribute, bindable, inject} from "aurelia-framework"; class Gesture { constructor(element, oribella, type) { this.element = element; this.oribella = oribella; this.type = type; } bind() { this.remove = this.oribella.on(this.element, this.type, { selector: this.selector, ...
JavaScript
0.000001
@@ -61,16 +61,68 @@ mework%22; +%0Aimport %7Boribella%7D from %22oribella-default-gestures%22; %0A%0Aclass @@ -153,26 +153,16 @@ element, - oribella, type) %7B @@ -194,38 +194,8 @@ nt;%0A - this.oribella = oribella;%0A @@ -245,21 +245,16 @@ emove = -this. oribella @@ -558,36 +558,24 @@ ject(Element ...
44e57b4978abb22a3e532b30e34cdcdc385dfec5
Update open_VWSC.js
mac/resources/open_VWSC.js
mac/resources/open_VWSC.js
define(function() { 'use strict'; var transitionNames = [ null, 'wipeRight', 'wipeLeft', 'wipeDown', 'wipeUp', 'centerOutHorizontal', 'edgesInHorizontal', 'centerOutVertical', 'edgesInVertical', 'centerOutSquare', 'edgesInSquare', 'pushLeft', 'pushRight', 'pushDown', 'pushUp', ...
JavaScript
0.000001
@@ -3067,35 +3067,37 @@ toJSON: %7B%0A -get +value : function() %7B%0A @@ -5175,35 +5175,37 @@ toJSON: %7B%0A -get +value : function() %7B%0A
77161cea538d9fc7c0eadcebcd1c05f5a0052b2b
use es6 import for the demo
demo/js/index.js
demo/js/index.js
// Load the module. var perfundo = require('perfundo'); // Initialize a perfundo Lightbox. var myLightbox = new perfundo('.perfundo-js', { disableHistory: true, swipe: true });
JavaScript
0
@@ -17,31 +17,29 @@ le.%0A -var perfundo = require( +import Perfundo from 'per @@ -44,17 +44,16 @@ erfundo' -) ;%0A// Ini
689e5296b9e080c746177eeee7aa9166d791bbe8
change install/update notification
dist/event.js
dist/event.js
/* global chrome */ var devtoolsPort = []; var notifId = ''; chrome.runtime.onConnect.addListener(function (port) { devtoolsPort.push(port); }); var dsDebug = (chrome.runtime.id === 'ikbablmmjldhamhcldjjigniffkkjgpo' ? false : true); function addBlocking() { removeBlocking(); if (chrome.declarativeWebRequest) c...
JavaScript
0
@@ -3073,19 +3073,16 @@ ils) %7B%0A%09 -// if (deta @@ -3108,19 +3108,16 @@ tall')%0A%09 -// %09chrome. @@ -3131,27 +3131,24 @@ eate(%7B%0A%09 -// %09%09url: ' chrome-e @@ -3143,80 +3143,55 @@ l: ' -chrome-extension://' + chrome.runtime.id + '/options.html#install +https://bearcla.ws/dataslayer/#releaseNotes...
2c0a14cefd43802649380327155e66ff60c99903
Fix typo
calibrate.js
calibrate.js
var app = Argon.init(); app.context.setDefaultReferenceFrame(app.context.localOriginEastNorthUp); //is there a better way to access the video element? var video = Argon.ArgonSystem.instance.container.get(Argon.LiveVideoRealityLoader).videoElement; var flow = new oflow.VideoFlow(video); var dx = 0; flow.onCalculated(...
JavaScript
0.999999
@@ -1127,23 +1127,24 @@ ternion. -inverse +multiply (newOrie @@ -1333,20 +1333,16 @@ 2 * f);%0A - %0A con
e8a62a28548ac045f8c6d6297063da8d088d5c9a
Remove TODOs (created issues #2 and #3 instead)
dropbox-fetch.js
dropbox-fetch.js
const assert = require('assert-plus'); const fetch = require('node-fetch'); /** * The authorization token with which calls to the API are made. * @type {String} */ let _token = ''; const API_VERSION = '2/'; const AUTHORIZE_ENDPOINT = 'https://www.dropbox.com/oauth2/authorize'; const CONTENT_UPLOAD_ENDPOINT = 'htt...
JavaScript
0
@@ -2815,190 +2815,8 @@ );%0A%0A - /*%0A * TODO:%0A * - Add checks for leading and trailing slashes in the path etc. and add%0A * and / or remove them if necessary%0A * - Check if the given endpoint is a URL%0A */%0A%0A re @@ -3978,117 +3978,8 @@ th); - // TODO: Check if this is a valid path with a lead...
23367bd69f3b293ec5a338914937c2ae81f11bf5
Add prefix setting to Tailwind
web/tailwind.config.js
web/tailwind.config.js
module.exports = { purge: [], darkMode: false, // or 'media' or 'class' theme: { extend: {}, }, variants: { extend: {}, }, plugins: [], }
JavaScript
0
@@ -151,10 +151,27 @@ ns: %5B%5D,%0A + prefix: 'tw-',%0A %7D%0A
5f357a498242243872e1236c4c6856215204639e
Add `Buffer` to no-redeclare whitelist
etc/eslint/rules/stdlib.js
etc/eslint/rules/stdlib.js
'use strict'; /** * ESLint rules specific to stdlib. * * @namespace rules */ var rules = {}; /** * Require an empty line before single-line comments. * * @name empty-line-before-comment * @memberof rules * @type {string} * @default 'error' * * @example * // Bad... * function square( x ) { * var out; * // Squa...
JavaScript
0.000001
@@ -2075,16 +2075,28 @@ 32Array' +,%0A%09%09'Buffer' %0A%09%5D%0A%7D%5D;%0A
8bca4ec886c517df4e4462e3be47458637102773
Add missing space
templates/system/modules/pwa/themes/base/js/sw-register.js
templates/system/modules/pwa/themes/base/js/sw-register.js
/* * Author: Pierre-Henry Soria <hello@ph7cms.com> * Copyright: (c) 2018, Pierre-Henry Soria. All Rights Reserved. * License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. */ if ('serviceWorker' in navigator) { navigator.serviceWorker.register('[$...
JavaScript
0.023392
@@ -457,16 +457,17 @@ n scope: + ' + regi
92fbd1e6e692d0300a3be5e3965d2dc54dc4ca7f
Store ship name in closure; fix disable comms
eugene/static/js/eugene.js
eugene/static/js/eugene.js
$(document).ready(function() { var timerID = null; var updateMessages = function updateMessages(msgs) { // Takes list of {sender, text} objects. var allMessages = $('#message-table tbody').children(); var firstID = -1; if (allMessages.length > 0) { firstID = allMess...
JavaScript
0
@@ -43,24 +43,50 @@ erID = null; +%0A var ship_name = null; %0A%0A var up @@ -993,61 +993,8 @@ ) %7B%0A - var ship_name = $('body').data('ship-name');%0A @@ -1543,36 +1543,37 @@ hing up%0A -var +ship_ name = $('#ship- @@ -1643,24 +1643,29 @@ 'COMMS: ' + +ship_ name);%0A @@ -1691...
3fc61e2bc319fa2cf61d113d9f277cdfd1fc441c
fix typo
dropbox_server.js
dropbox_server.js
DropboxOauth = {}; OAuth.registerService('dropbox', 2, null, function(query) { var response = getTokenResponse(query); var accessToken = response.accessToken; var identity = getIdentity(accessToken); var serviceData = { id: identity.uid, accessToken: accessToken, expiresAt: (+new Date()) + (1000 ...
JavaScript
0.999991
@@ -1245,11 +1245,14 @@ fig. -app +client Id, @@ -2357,17 +2357,16 @@ ders: %7B -%22 Authoriz @@ -2374,13 +2374,12 @@ tion -%22 : ' -b +B eare
516ca63b252fea6148805fe86c73fb4af4beb62f
Use ES5 in examples/inject_ol_cesium.js
examples/inject_ol_cesium.js
examples/inject_ol_cesium.js
(function() { const mode = window.location.href.match(/mode=([a-z0-9\-]+)\&?/i); const isDev = mode && mode[1] === 'dev'; window.IS_DEV = isDev; const cs = isDev ? 'CesiumUnminified/Cesium.js' : 'Cesium/Cesium.js'; window.CESIUM_URL = `../node_modules/@camptocamp/cesium/Build/${cs}`; if (!window.LAZY_CESIU...
JavaScript
0.000001
@@ -1,25 +1,155 @@ -(function() %7B%0A const +// This file is ES5 on purpose.%0A// It does not go through webpack; it is directly loaded by the html.%0A(function() %7B%0A /* eslint-disable no-var */%0A var mod @@ -208,21 +208,19 @@ ?/i);%0A -const +var isDev = @@ -278,13 +278,11 @@ ;%0A -const +var cs @...
9cb4577c63132e8c2ef2db3e6d2bde8865f180e1
add auth obj in options if set in config
mailer.js
mailer.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ var qs = require('querystring') var P = require('bluebird') var nodemailer = require('nodemailer') module.exports...
JavaScript
0.000001
@@ -494,24 +494,166 @@ g.port%0A %7D +%0A%0A if (config.user && config.password) %7B%0A options.auth = %7B%0A user: config.user,%0A pass: config.password%0A %7D%0A %7D%0A %0A this.ma
53e22b570d08d71902380403052377d4984fd355
add add actioncreator for set current page
static/js/actions/collectionsPagination.js
static/js/actions/collectionsPagination.js
// @flow import { createAction } from "redux-actions" import type { Dispatch } from "redux" import * as api from "../lib/api" const qualifiedName = (name: string) => `COLLECTIONS_PAGINATION_${name}` const constants = {} const actionCreators = {} constants.REQUEST_GET_PAGE = qualifiedName("REQUEST_GET_PAGE") actionCr...
JavaScript
0
@@ -750,16 +750,23 @@ Page = ( +opts: %7B page: nu @@ -769,23 +769,48 @@ : number +%7D ) =%3E %7B%0A + const %7B page %7D = opts%0A const @@ -967,51 +967,25 @@ %7Bpag -e%7D)%0A const data = response.data %7C%7C %7B%7D +ination: %7Bpage%7D%7D) %0A @@ -1457,20 +1457,24 @@ ( -data +response .c...
1266fd052ed687d449e0b1771a3b357e445473fa
Remove duplicate `var headers = {};`
samples/websocket/src/main/resources/static/resources/js/message.js
samples/websocket/src/main/resources/static/resources/js/message.js
function ApplicationModel(stompClient) { var self = this; self.friends = ko.observableArray(); self.username = ko.observable(); self.conversation = ko.observable(new ImConversationModel(stompClient,this.username)); self.notifications = ko.observableArray(); self.csrfToken = ko.computed(function() { return JSO...
JavaScript
0.00758
@@ -552,36 +552,16 @@ oken();%0A -%09%09var headers = %7B%7D;%0A %09%09header
918783a8ce3946fff2783d928b8e329c572c1811
Fix leave modal when leaving new post
ghost/admin/routes/editor/new.js
ghost/admin/routes/editor/new.js
import base from 'ghost/mixins/editor-route-base'; var EditorNewRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, base, { classNames: ['editor'], model: function () { var self = this; return this.get('session.user').then(function (user) { return self.store.createRecord...
JavaScript
0
@@ -519,16 +519,60 @@ h', ''); +%0A controller.set('titleScratch', ''); %0A%0A
d8419a8b85506a7cb1c840171b29cf85663b1f68
Improve order normalization awareness algorithm
js/collections/ordered_collection.js
js/collections/ordered_collection.js
"use strict"; var _ = require('underscore-contrib') , $ = require('jquery') , Backbone = require('../backbone') function makeorderedSave(origSave) { return function (attributes, options) { var that = this , needsNormalization = this.collection.getMinOrderingStep() < this.collection.minOrderingStep ...
JavaScript
0.000013
@@ -259,62 +259,28 @@ ion. -getMinOrderingStep() %3C this.collection.minOrderingStep +needsNormalization() %0A @@ -4318,24 +4318,303 @@ rt();%0A %7D,%0A%0A + needsNormalization: function () %7B%0A var curMinOrderingStep = this.getMinOrderingStep();%0A%0A if (!_.isFinite(curMinOrderingStep)) %7B%0A re...
79a3444d39b69a341f4ac9ecc41147bee51b89df
Add support for fermenter-iteration attribute.
src/common/fermenter/fermenterEnv.js
src/common/fermenter/fermenterEnv.js
import { Record } from 'immutable'; export default Record({ createdAt: null, temperature: null, humidity: null, isValid: false, errors: 0, });
JavaScript
0
@@ -143,12 +143,28 @@ ors: 0,%0A + iterations: 0%0A %7D);%0A
f3bc0a1b6a68a68e8c5227d625ae82e58471d78e
Fix tag grouping bugs.
packages/eslint-plugin/rules/jsdoc-tag-grouping.js
packages/eslint-plugin/rules/jsdoc-tag-grouping.js
/** * ESLint rules: specify JSDoc tag grouping rules. * * Site Kit by Google, 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...
JavaScript
0
@@ -1624,30 +1624,33 @@ f (%0A%09%09%09jsdoc -.sourc +Node.valu e.match(%0A%09%09%09 @@ -1695,17 +1695,21 @@ %7D.*%5C%5Cn%5C%5C -n +s*%5C%5C* %60, 'gm'
ef50092daad966073df5ec49f8636e77ee413df2
Make when clicked hats trigger on mouse down
src/io/mouse.js
src/io/mouse.js
const MathUtil = require('../util/math-util'); class Mouse { constructor (runtime) { this._x = 0; this._y = 0; this._isDown = false; /** * Reference to the owning Runtime. * Can be used, for example, to activate hats. * @type{!Runtime} */ ...
JavaScript
0
@@ -695,20 +695,8 @@ x, y -, wasDragged ) %7B%0A @@ -1138,102 +1138,8 @@ // - the result of a drag ending%0A if (!wasDragged) %7B%0A // Act @@ -1211,20 +1211,16 @@ - // They @@ -1265,20 +1265,16 @@ beling,%0A - @@ -1333,28 +1333,24 @@ ...
2f956971e1340a7663cbffe57b0113d2b908abd4
fix entry.js regex
src/js/entry.js
src/js/entry.js
var files = require.context('.', true, /\components\/\.js$/); files.keys().forEach(files);
JavaScript
0.000009
@@ -33,17 +33,17 @@ true, / -%5C +( componen @@ -48,15 +48,9 @@ ents -%5C/%5C.js$ +) /);%0A
53b622f80438cbccb5c8a54c5304fabc51430602
use main site
src/js/oseam.js
src/js/oseam.js
// ------------------------------------------------------------------------------------------------- // OpenSeaMap Water Depth - Web frontend for depth data handling. // // Written in 2012 by Dominik Fässler dfa@bezono.org // // To the extent possible under law, the author(s) have dedicated all copyright // and related...
JavaScript
0
@@ -911,18 +911,16 @@ api2/',%0A -// apiU @@ -978,32 +978,34 @@ .upload/api2/',%0A +// apiUrl: 'htt
3b751a698f27a106088ef496e8a1c89b94f7e7af
refactor for..of to reduce array instead
src/js/print.js
src/js/print.js
import Browser from './browser' import { cleanUp } from './functions' const Print = { send: (params, printFrame) => { // Append iframe element to document body document.getElementsByTagName('body')[0].appendChild(printFrame) // Get iframe element const iframeElement = document.getElementById(params....
JavaScript
0
@@ -2025,46 +2025,75 @@ s = -%5B%5D%0A%0A for (let image of +Array.prototype.slice.call(images).reduce((memo, image -s ) + =%3E %7B%0A + if ( @@ -2141,24 +2141,32 @@ n.href) -promises +%7B%0A memo .push(lo @@ -2186,20 +2186,54 @@ (image)) +; %0A -%7D + %7D%0A return memo;%0A %7D,...
b1f4e71c82c3bd5719f1ab66bcd1cd43109dd50b
Set `dev`
src/js/serve.js
src/js/serve.js
const express = require('express') const fs = require('fs-extra') const getPort = require('get-port') const lodashTemplate = require('lodash.template') const markdownExtensions = require('markdown-extensions') const path = require('path') const sirv = require('sirv') const createFileWatcher = require('./create-file-wa...
JavaScript
0
@@ -2117,16 +2117,23 @@ app.use( +%0A sirv(dir @@ -2138,17 +2138,51 @@ irectory -) +, %7B%0A dev: true%0A %7D)%0A )%0A%0A a
99ae11d7ffb521bbad029e6da38df01c23922da8
add passport script and login facebook module, #1
examples/booklog-homa/index.js
examples/booklog-homa/index.js
/** * Module dependencies. */ var express = require('../../lib/express'); // Path to our public directory var pub = __dirname + '/public'; // setup middleware var app = express(); app.use(express.static(pub)); var mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/booklog2'); var dbConn = mo...
JavaScript
0
@@ -1266,24 +1266,1126 @@ -parser');%0A%0A +var passport = require('passport')%0A , FacebookStrategy = require('passport-facebook').Strategy;%0A%0Apassport.use(new FacebookStrategy(%7B%0A clientID: %22573894422722633%22,%0A clientSecret: %22cd295293760fb7fe56a69c1aae66da51%22,%0A callbackURL: %22http://local...
bdeff7f1f425f87b51b91bb49b0e3067e263c39b
Make randomize a utility of the class
matrix.js
matrix.js
// Tiny Matrix Class // Copyright 2016 Motivara var Matrix = function(r,c) { // pass a row count or an array of arrays if(Array.isArray(r)) {this.$=r;} else { var i,j; for(i=0,this.$=[];i<r;i++) { this.$[i]=[]; if (typeof c === 'number') // if col count, then init {for(j=0;j<c;j++) {this...
JavaScript
0.000288
@@ -2752,20 +2752,23 @@ th;%7D%0A%7D;%0A -var +Matrix. randomiz
9b11dfe6d83e1f6ae937f1194860bb705f533c07
Update stylesheet.js
plugins/stylesheet.js
plugins/stylesheet.js
// hot damn we really need a <stylesheet> tag onepoint.stylesheet = Plugin({ name: "Stylesheet", description: "<stylesheet> tag", version: "0.1", author: "GeekyGamer14", help: "Use <stylesheet sheet=\"path_to_sheet.css\"></stylesheet>" }) onepoint.stylesheet.check = function(){ var ss = onepoint.stylesheet; $('...
JavaScript
0.000001
@@ -605,16 +605,200 @@ %09%7D%0A%09%7D);%0A +%09%0A%09$('style').each(function()%7B%0A%09%09if($(this).attr('src') !== undefined)%7B%0A%09%09%09$(this).html('%3Clink href=%22' + $(this).attr('sheet') + '%22 rel=%22stylesheet%22 type=%22text/css%22%3E%3C/link%3E');%0A%09%09%7D%0A%09%7D)%0A %7D%0Aonepoi @@ -929,8 +929,...
22122f5f3832c6211aa92eb5e208090d60dea88e
correct details
matrix.js
matrix.js
// Input Matrix // 1 0 0 1 // 0 0 1 0 // 0 0 0 0 // Matrix after modification // 1 1 1 1 // 1 1 1 1 // 1 0 1 1 var setZeros = function(matrix){ //to remember which columns we need to fill with 1's var rows = []; var columns = []; for(i=0; i<(matrix.length); i++){ var rowLength = matrix[i].length // console.log...
JavaScript
0.000079
@@ -192,16 +192,52 @@ ith 1's%0A +%0A%09if(matrix.length == 0)%0A%09%09return;%0A%0A %09var row @@ -263,16 +263,19 @@ s = %5B%5D;%0A +%0A%0A%0A %09for(i=0 @@ -307,19 +307,19 @@ %7B%0A%09%09var -row +col Length = @@ -377,34 +377,25 @@ (j=0; j%3C -(matrix%5Bi%5D.l +colL ength -) ; j++)%7B%0A @@ -711,17 +711,16 ...
e2a098d9c7497bfb7b3c5f68d00310ce90b97af3
Rename variable for clarity.
src/Parser/Core/Modules/Items/BFA/Raids/Uldir/InoculatingExtract.js
src/Parser/Core/Modules/Items/BFA/Raids/Uldir/InoculatingExtract.js
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import {formatNumber} from 'common/format'; import ItemHealingDone from 'Interface/Others/ItemHealingDone'; import Analyzer from 'Parser/Core/Analyzer'; /** * Inoculating Extract - * Use: Inject 5 stacks of Mutating Anti...
JavaScript
0
@@ -555,18 +555,21 @@ = 0;%0A -us +charg es = 0;%0A @@ -895,18 +895,21 @@ this. -us +charg es += 1; @@ -1074,18 +1074,21 @@ il(this. -us +charg es/5)%7D%3C/ @@ -1121,10 +1121,13 @@ his. -us +charg es%7D%3C
9624dc70d335ddf42d4860264e1ef9ec35a9ba78
Simplify JX.JSON.stringify() implementation
src/lib/JSON.js
src/lib/JSON.js
/** * Simple JSON serializer. * * @requires javelin-install javelin-util * @provides javelin-json * @javelin */ JX.install('JSON', { statics : { parse : function(data) { if (typeof data != 'string'){ return null; } if (JSON && JSON.parse) { var obj; try { ...
JavaScript
0.000011
@@ -468,19 +468,19 @@ unction( -obj +val ) %7B%0A @@ -489,244 +489,31 @@ if ( -__DEV__) %7B%0A try %7B%0A return JX.JSON._stringify(obj);%0A %7D catch (x) %7B%0A JX.log(%0A 'JX.JSON.stringify(...): '+%0A 'caught exception while serializing object. ('+x+')');%...
d967a3c6647697a8e3af70bc9e508843cc534f02
Fix ‘created_at’ and ‘updated_at’ values in data objects table
src/apps/DataObjects/DataObjectsTable/DataObjectsTableDateCell.js
src/apps/DataObjects/DataObjectsTable/DataObjectsTableDateCell.js
import React from 'react'; import Moment from 'moment'; const DataObjectsTableDateCell = ({ content }) => { const dateValue = content.value; const date = Moment(dateValue).format('DD/MM/YYYY'); const time = Moment(dateValue).format('LTS'); const title = `${date} ${time}`; return ( <div title={title}> ...
JavaScript
0.000001
@@ -118,62 +118,25 @@ date -Value = content.value;%0A const date = Moment(dateValue + = Moment(content ).fo @@ -181,17 +181,15 @@ ent( -dateValue +content ).fo
fb56e129aed76de6fc3ac624d51cadfcb08ff938
Update add-and-commit.js
examples/add-and-commit.js
examples/add-and-commit.js
var nodegit = require("../"); var path = require("path"); var fse = require("fs-extra"); var fileName = "newfile.txt"; var fileContent = "hello world"; var directoryName = "salad/toast/strangerinastrangeland/theresnowaythisexists"; /** * This example creates a certain file `newfile.txt`, adds it to the git * index a...
JavaScript
0.000001
@@ -1,11 +1,13 @@ -var +const nodegit @@ -25,19 +25,21 @@ %22../%22);%0A -var +const path = @@ -59,15 +59,16 @@ %22);%0A -var +const fs -e = r @@ -81,21 +81,17 @@ (%22fs --extra%22);%0Avar +%22);%0Aconst fil @@ -113,19 +113,21 @@ e.txt%22;%0A -var +const fileCon @@ -148,19 +148,21 @@ world%22;%0A -var...
48adc22711c25bc843a29ab353e48445ef8578b8
update math/multiply.js
src/math/multiply.js
src/math/multiply.js
function times (arr) { return arr.reduce(function (prod, item, key) { if (key === 0) return prod = item return prod *= item }) } module.exports = times
JavaScript
0.000002
@@ -1,16 +1,48 @@ +var clean = require('./clean')%0A%0A function times ( @@ -57,19 +57,31 @@ return -arr +clean(arr)%0A .reduce( @@ -113,16 +113,18 @@ ) %7B%0A + if (key @@ -153,16 +153,18 @@ tem%0A + return p @@ -175,16 +175,18 @@ *= item%0A + %7D)%0A%7D%0A%0A
5fd7dd2fb382264a46cf58d65c7041a2851b575a
use a wait instead of sleep
test/functional/android/gpsdemos/location-specs.js
test/functional/android/gpsdemos/location-specs.js
"use strict"; var setup = require("../../common/setup-base") , desired = require("./desired"); describe("gpsDemo - location @skip-real-device", function () { var driver; setup(this, desired).then(function (d) { driver = d; }); it('should set geo location', function (done) { var getText = function () { ...
JavaScript
0.005995
@@ -89,18 +89,56 @@ esired%22) +%0A , Asserter = require('wd').Asserter ;%0A - %0Adescrib @@ -509,16 +509,438 @@ %7D;%0A%0A + var textPopulated = new Asserter(%0A function () %7B%0A return getText().then(function (text) %7B%0A if (text === 'GPS Tutorial') %7B%0A var err = new...
38848cc26741ebb7ba23ad593cfa4814c21396c2
Update line-bot.js
src/line-bot.js
src/line-bot.js
import express from 'express'; import bodyParser from 'body-parser'; import request from 'request'; import config from '../config'; const app = express(); const port = '7123'; const { CHANNEL_ID, CHANNEL_SERECT, MID } = {...config}; const LINE_API = 'https://trialbot-api.line.me/v1/events'; app.use(bodyParser.json()...
JavaScript
0.000001
@@ -380,16 +380,24 @@ .post('/ +callback ', (req,
40b162bdf2a22e66f686c6368b14e49b73d9d9a8
Update live-css.js
src/live-css.js
src/live-css.js
var liveCss = (function () { 'use strict'; var _modifiers = {}; var api = { init: init } return api; /** * Init live CSS tools * @param {Object} config Live CSS configuration */ function init(config) { var form = _initForm(), index = 0; for (var key in config) { if (config.hasOwnProperty(k...
JavaScript
0
@@ -1128,31 +1128,24 @@ selectors) %7B - // ES6 %0A%09%09%09var node @@ -1224,13 +1224,9 @@ // -ES6 n +N ot w @@ -2884,32 +2884,25 @@ .elements) %7B - // ES6 %0A + %09%09%09element.s @@ -3151,39 +3151,32 @@ fier.elements) %7B - // ES6 %0A%09%09%09element.styl @@ -3361,32 +3361,32 @@ .target.name%5D;%0A%0A +...
427415ffff53fbf603a386a9f3dbbbe41102765b
Fix comment typo
examples/nodeloadlib-ex.js
examples/nodeloadlib-ex.js
#!/usr/bin/env node // Instructions: // // 1. Get node (http://nodejs.org/#download) // 2. git clone http://github.com/benschmaus/nodeload.git // 3. node nodeload/examples/nodeloadlib-ex.js // // This example performs a micro-benchmark of Riak (http://riak.basho.com/), a key-value store, // running on localhost:8080....
JavaScript
0.000003
@@ -310,18 +310,23 @@ lhost:80 -80 +98/riak . First, @@ -383,14 +383,14 @@ ckly - as %0A// + as pos
6ae8c74e6d798c75ddb5c9d2a7e23eeddadf7dc1
Revert "defaultTotalDimension should not exceed screen dimensions (#184)"
FlatGrid.js
FlatGrid.js
import React, { forwardRef, memo, useState, useCallback, useMemo, } from 'react'; import { View, Dimensions, FlatList, } from 'react-native'; import PropTypes from 'prop-types'; import { chunkArray, calculateDimensions, generateStyles } from './utils'; const FlatGrid = memo( forwardRef((props, ref) => { con...
JavaScript
0
@@ -1135,16 +1135,32 @@ nsion = +maxDimension %7C%7C Dimensio @@ -1191,134 +1191,8 @@ on%5D; -%0A if (maxDimension && defaultTotalDimension %3E maxDimension) %7B%0A defaultTotalDimension = maxDimension;%0A %7D %0A
a850dfcd6edb572ab681c36a850be1e37a983426
Check for correct route on the compact income expense (#1370)
src/extension/features/reports/compact-income-vs-expense/index.js
src/extension/features/reports/compact-income-vs-expense/index.js
import { Feature } from 'toolkit/extension/features/feature'; import { isCurrentRouteBudgetPage } from 'toolkit/extension/utils/ynab'; export class CompactIncomeVsExpense extends Feature { injectCSS() { return require('./index.css'); } shouldInvoke() { return isCurrentRouteBudgetPage(); } invoke() { ...
JavaScript
0
@@ -64,18 +64,19 @@ mport %7B -is +get CurrentR @@ -79,25 +79,19 @@ entRoute -BudgetPag +Nam e %7D from @@ -258,18 +258,19 @@ return -is +get CurrentR @@ -277,19 +277,48 @@ oute -BudgetPage( +Name().includes('reports.income-expense' );%0A
af6474db6d94b00ca097b1fceab5c61e57ebe723
Disable outputting module dependencies when compiling
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'), babel = require('gulp-babel'), del = require('del'), fs = require('fs-extra'), runSequence = require('run-sequence'), sourcemaps = require('gulp-sourcemaps'), watch = require('gulp-watch'); var queue = []; var inProgress = 0; var MAX_PARALLEL_CLOSURE_INVOCATIONS = 4;...
JavaScript
0.000001
@@ -1989,16 +1989,19 @@ + // output_
8fdad9ebfabaf4dae64b4e2fbdaca59218da2d23
Remove redundant ‘gulp-rename’ include from Gulpfile.js
Gulpfile.js
Gulpfile.js
const gulp = require('gulp'); const sass = require('gulp-sass'); const pug = require('gulp-pug'); const rename = require('gulp-rename'); const browserSync = require('browser-sync').create(); gulp.task('demo', ['demo:scss', 'demo:pug'], () => { browserSync.init({ server: 'demo' }); gulp.watch('demo/**/*.scss', ['de...
JavaScript
0
@@ -95,47 +95,8 @@ ');%0A -const rename = require('gulp-rename');%0A cons
40d9953a4b9b3e924f4d5210b0a9d66e49de0625
add gulp config
Gulpfile.js
Gulpfile.js
JavaScript
0.000001
@@ -1 +1,538 @@ %0A +var gulp = require('gulp')%0Avar webpack = require('webpack')%0Avar wpConf = require('./webpack.config.js')%0Avar gutil = require('gulp-util')%0Avar mocha = require('gulp-mocha')%0A%0Agulp.task('default', %5B'webpack'%5D)%0A%0Agulp.task('test', %5B'webpack'%5D, function () %7B%0A return gulp.src(...
e5e266d54dce041c404014c389c5cfaf1f529d9d
Update default gulp tasks
Gulpfile.js
Gulpfile.js
'use strict'; // eslint-disable-line /** * Gulp file for front-end js check and etc. * Date : 2015/10/21 * copyright : (c) hustcer */ let gulp = require('gulp'), sloc = require('gulp-sloc2'), eslint = require('gulp-eslint'), imagemin = require('gulp-imagemin'), pngquant = requi...
JavaScript
0.000001
@@ -1011,16 +1011,24 @@ ', 'opt' +, 'sloc' %5D;%0A%0Agulp
391d465df75ecea6b9f049cc1e1e982ebc25728b
add specs to jshint task
Gulpfile.js
Gulpfile.js
var _ = require('lodash'); var express = require('express'); var fs = require('fs'); var gulp = require('gulp'); var lr = require('tiny-lr'); var path = require('path'); var browserify = require('gulp-browserify'); var concat = require('gulp-concat'); var gulpif = require('gulp-if'); var gzip = require('gulp-gzip'); v...
JavaScript
0
@@ -2016,16 +2016,32 @@ ile.js', + 'spec/**/*.js', 'src/js
2e87a7e7c903d8704e0b03469d6d9816172a7f68
Comment out unused header
src/models/Server.js
src/models/Server.js
import axios from 'axios' export default axios.create({ // baseURL: process.env.REACT_APP_API_SERVER, headers: {'X-Key-Inflection': 'camel'}, // camel case keys timeout: 30000, })
JavaScript
0
@@ -99,16 +99,19 @@ ERVER,%0A + // headers @@ -162,16 +162,80 @@ ase keys + // created by Olive Branch on server side, not currently in use %0A timeo
08964c74088b08deb7605e65a05fc7ff5e1f85fc
use flatMap on sequences instead of .map().flatten()Immutable sequence are lazy: cannot relate on order of map() and flatten()
src/modules/merge.js
src/modules/merge.js
'use strict'; const Immutable = require('immutable'); const UNIQUE_PREFIX = 'cashflow_unique_prefix'; const mergeCFFs = (immutableCFFs) => { const mergeLines = (lines) => { const groupedLinesMap = lines.reduce( (acc, line, index) => { const lineID = line.has('id') ? line.get('id') : UNIQUE_PREFIX...
JavaScript
0.000002
@@ -791,28 +791,24 @@ =%3E %7B%0A - return index @@ -839,36 +839,32 @@ h - 1 ?%0A - acc + x.get('sou @@ -887,28 +887,24 @@ : %0A - - acc + x.get( @@ -938,27 +938,19 @@ ;%0A - %7D,%0A +%7D,%0A 'm @@ -1010,17 +1010,21 @@ bleCFFs. -m +flatM ap((cff) @@ -1025...
9ed6fc520c678fa2cf118a5db7096e65a5e7cafe
update code style
src/num-util.js
src/num-util.js
/** * Verificar se um valor é um número, da língua portuguesa, valido. * * @method isValidNumber * @param {string} val Um valor para ser verificado. * @returns {boolean} Verificação do valor. */ export const isValidNumber = (val, isCommaSeparator=false) => { if (typeof val === 'number') { // Se for um inte...
JavaScript
0
@@ -2098,16 +2098,17 @@ const %5B + integer, @@ -2115,16 +2115,17 @@ decimal + %5D = norm
1398ab01c34bb7264190d75fd71949c88afacd3c
Move store and records declarations
lib/mixins/ampersand-sync-localstorage.js
lib/mixins/ampersand-sync-localstorage.js
function guid() { function S4() { return (((1+Math.random())*0x10000)|0).toString(16).substring(1); } return S4() + S4() + '-' + S4() + '-' + S4() + '-' + S4() + '-' + S4() + S4() + S4(); } module.exports = function (name) { var store = localStorage.getItem(name), records = (store && st...
JavaScript
0
@@ -235,24 +235,75 @@ on (name) %7B%0A + return function (method, model, options) %7B%0A var stor @@ -390,56 +390,8 @@ %5B%5D; -%0A%0A return function (method, model, options) %7B %0A
eb554106d77496e98d7e1cda5f7024ab7c4e4c8c
Add style for close window button in paymentr.js
src/paymentr.js
src/paymentr.js
(function () { "use strict"; function receiveMessage(event) { if (event.data.url) { window.location.href = event.data.url; }; return false; } window.addEventListener("message", receiveMessage, false); var PaymentForm = function (options) { if (!options.url) { return false;...
JavaScript
0
@@ -3150,24 +3150,82 @@ '%3E%3C/div%3E%22);%0A + $(%22a#closeWindow%22).css(%22left%22, size.width);%0A
a0e49e96b36630a945bb5b8f34d85e4b60d545de
fix homepage
src/quiz/QuizView.js
src/quiz/QuizView.js
import React, { Component } from 'react' import firebase from 'firebase' import {HashLink as Link} from 'react-router-hash-link' import _copyNested from '../_shared/_copyNested' import Option from './Option' import './QuizView.css' class QuizView extends Component { constructor (props) { super(props) this...
JavaScript
0.000007
@@ -1275,16 +1275,62 @@ uizData%0A + if (!quizData) %7B%0A return null%0A %7D%0A%0A cons