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
de639640bba50a9b3f2d0ae175d4676c6fa2144a
Update PrecisionFloatView.js
src/foam/u2/PrecisionFloatView.js
src/foam/u2/PrecisionFloatView.js
foam.CLASS({ package: 'foam.u2', name: 'PrecisionFloatView', extends: 'foam.u2.FloatView', documentation: 'Float view that limits input length based on precision.', methods: [ function link() { this.SUPER(); if ( this.precision !== undefined ) { this.da...
JavaScript
0
@@ -6,18 +6,16 @@ CLASS(%7B%0A - packag @@ -28,18 +28,16 @@ am.u2',%0A - name: @@ -58,18 +58,16 @@ tView',%0A - extend @@ -91,22 +91,17 @@ View',%0A - %0A +%0A docume @@ -169,22 +169,17 @@ ion.',%0A - %0A +%0A method @@ -183,18 +183,16 @@ hods: %5B%0A - func @@ -207,26 +207,...
9a8da63c505f805615e9fd8fa9fb805eec2e72c7
fix refs
BackgroundKmlReader.js
BackgroundKmlReader.js
'use strict'; /** * BackgroundKmlReader is meant to be a drop in replacement for KmlReader class */ var BackgroundKmlReader = (function() { var current=document.currentScript.src; var workerScript=current.replace('BackgroundKmlReader.js', 'KmlReaderWorker.js'); var BackgroundKmlReader = function(kml) { this...
JavaScript
0.000001
@@ -1979,18 +1979,20 @@ var fns= -me +this ._idleFn @@ -2006,18 +2006,20 @@ (0);%0A%09%09%09 -me +this ._idleFn
557d8834fdd5537b02750bd592a243d3a1630428
Remove unused var
Commands/missingJob.js
Commands/missingJob.js
'use strict'; /* global config,appdir,Promise */ global.Queue = require('bee-queue'); var jsBeautify = require('js-beautify').js_beautify; var fs = require('fs-promise'); var each = require('lodash/each'); var merge = require('merge'); var utils = require('../lib/utilsCmd'); var includeAll = require('include-all'); var...
JavaScript
0
@@ -2709,35 +2709,8 @@ n%22;%0A - jobFile += %22var job;%5Cn%22;%0A jo
b78e57741def27c0bed016af38c054037db4b2bf
add click handler to GroupSuggestionCard
agir/groups/components/groupPage/GroupSuggestionCard.js
agir/groups/components/groupPage/GroupSuggestionCard.js
import PropTypes from "prop-types"; import React from "react"; import styled from "styled-components"; import { routeConfig } from "@agir/front/app/routes.config"; import style from "@agir/front/genericComponents/_variables.scss"; import Button from "@agir/front/genericComponents/Button"; import Card from "@agir/fron...
JavaScript
0
@@ -56,16 +56,63 @@ react%22;%0A +import %7B useHistory %7D from %22react-router-dom%22;%0A import s @@ -689,16 +689,35 @@ w: none; +%0A cursor: pointer; %0A%0A @med @@ -1562,16 +1562,233 @@ props;%0A%0A + const history = useHistory();%0A const handleClick = React.useCallback(() =%3E %7B%0A id &&%0A ro...
f90685b8d5a092e7079e9d7edeebb00abddc1e21
remove bitwise - make code human readable
app/assets/javascripts/vue_pipelines_index/stage.js.es6
app/assets/javascripts/vue_pipelines_index/stage.js.es6
/* global Vue, Flash, gl */ /* eslint-disable no-param-reassign, no-bitwise */ ((gl) => { gl.VueStage = Vue.extend({ data() { return { builds: '', spinner: '<span class="fa fa-spinner fa-spin"></span>', }; }, props: { stage: { type: Object, required: true...
JavaScript
0.000005
@@ -60,20 +60,8 @@ sign -, no-bitwise */%0A @@ -1013,17 +1013,16 @@ if ( -~ target.c @@ -1058,16 +1058,21 @@ n-icon') + %3E= 0 ) return @@ -1140,9 +1140,9 @@ -~ +( targ @@ -1196,16 +1196,22 @@ n-icon') + %3E= 0) %0A
e4f64951398044467967099a86f18681e7eb2fc9
Move boolean isDismissable prop to end.
assets/js/components/notifications/UserInputSettings.js
assets/js/components/notifications/UserInputSettings.js
/** * UserInputSettings component. * * Site Kit by Google, Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2...
JavaScript
0
@@ -1996,25 +1996,8 @@ ge%22%0A -%09%09%09isDismissable%0A %09%09%09d @@ -2260,16 +2260,33 @@ Image %7D%0A +%09%09%09isDismissable%0A %09%09/%3E%0A%09);
db7e1f5d86382a1ac3f22bdba89dac12c448503d
Revert multiline
assets/src/stories-editor/blocks/amp-story-text/edit.js
assets/src/stories-editor/blocks/amp-story-text/edit.js
/** * External dependencies */ import classnames from 'classnames'; import PropTypes from 'prop-types'; import { isEqual } from 'lodash'; /** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { Component } from '@wordpress/element'; import { RichText, BlockControls, AlignmentToolbar, } fr...
JavaScript
0
@@ -3885,33 +3885,8 @@ ) %7D%0A -%09%09%09%09%09%09multiline=%7B true %7D%0A %09%09%09%09
d88fd2c196a410f2be03cec9b104f2509c5581e9
Remove debugging cruft (#2503)
assets/src/stories-editor/blocks/amp-story-text/save.js
assets/src/stories-editor/blocks/amp-story-text/save.js
/** * External dependencies */ import PropTypes from 'prop-types'; /** * WordPress dependencies */ import { RichText } from '@wordpress/block-editor'; import { RawHTML } from '@wordpress/element'; /** * Internal dependencies */ import { getClassNameFromBlockAttributes, getStylesFromBlockAttributes } from '../.....
JavaScript
0
@@ -983,15 +983,8 @@ amp- -fitted- text
f3367c45925b9ef642e1105b5fc82561d8aa07ec
tweak channel item for new line-height
pkg/interface/src/apps/chat/components/lib/channel-item.js
pkg/interface/src/apps/chat/components/lib/channel-item.js
import React, { Component } from 'react'; export class ChannelItem extends Component { constructor(props) { super(props); } onClick() { const { props } = this; props.history.push('/~chat/room' + props.box); } render() { const { props } = this; const unreadElem = props.unread ? 'fw6' : ...
JavaScript
0
@@ -569,17 +569,17 @@ z1 ph4 p -v +b 1 ' + se
a3e3e7253ead20203a5b10ab0bbf22c22633c11b
remove trash
workers/items_processor.js
workers/items_processor.js
const pry = require('pryjs'); const jackrabbit = require('jackrabbit'); const log = require('log-colors'); const spawn = require('lib/spawn'); const qs = require('qs'); const request = require('request'); const btc = require('bloom-text-compare'); const cheerio = require('cheerio'); const _ = require('lodash'); const ...
JavaScript
0.000009
@@ -3296,17 +3296,16 @@ ring = %60 - INSERT I @@ -3370,51 +3370,8 @@ %60;%0A%0A - console.log(query_string);%0A return;%0A @@ -3479,25 +3479,34 @@ -console.log +if(err)%7B log.error (err); + %7D %0A
5464963fadf868a7a5fb4bff6562f0f16009ed9f
Update alloy.js
app/alloy.js
app/alloy.js
// The contents of this file will be executed before any of // your view controllers are ever executed, including the index. // You have access to all functionality on the `Alloy` namespace. // // This is a great place to do any initialization for your app // or create any global variables/functions that you'd like to ...
JavaScript
0
@@ -527,1260 +527,8 @@ %7D;%0A%0A -%0A// added during app creation. this will automatically login to%0A// ACS for your application and then fire an event (see below)%0A// when connected or errored. if you do not use ACS in your%0A// application as a client, you should remove this block%0A(function() %7B%0A var ACS = ...
cefeed25eee8de928882456977a9099cab707d6e
fix the API interceptor to actually throw the error back
platform-hub-web/src/app/shared/api-interceptor.service.js
platform-hub-web/src/app/shared/api-interceptor.service.js
export const apiInterceptorService = function ($rootScope, events) { 'ngInject'; const service = {}; service.responseError = responseError; return service; function responseError(response) { if (response.status === 401) { $rootScope.$broadcast(events.auth.unauthorized, 'User unauthorized'); ...
JavaScript
0
@@ -40,16 +40,20 @@ nction ( +$q, $rootSco @@ -670,24 +670,34 @@ return +$q.reject( response ;%0A %7D%0A%7D; @@ -688,16 +688,17 @@ response +) ;%0A %7D%0A%7D;
b0dd02d086816af35c9996128b7e33f4e6da0666
remove log
src/app/services/dashboard.service.js
src/app/services/dashboard.service.js
(function() { 'use strict'; /** * @memberof app * @ngdoc service * @name Dashboard * @description Dashboard service to handle with dashboard * */ angular.module('app').factory("Dashboard", DashboardService); DashboardService.$inject = []; function DashboardService() { ...
JavaScript
0.000001
@@ -993,50 +993,8 @@ ) %7B%0A - console.log('set dashboard');%0A
b37e29af4a737587988192b29bc996e95666eff7
Fix error causing degraded performance
client/includes/header.js
client/includes/header.js
Template.header.helpers({ displayRegister: function () { if (Meteor.user().profile) {return "none";} } }) Template.heading.helpers({ heading: function () { return pageTitle; } })
JavaScript
0.000003
@@ -118,94 +118,6 @@ %7D%0A%7D) +; %0A -%0ATemplate.heading.helpers(%7B%0A heading: function () %7B%0A return pageTitle;%0A %7D%0A%7D)
b6c5534cb927d8fd56b1eec2b03653d4e6a79d45
Remove catch so that caller can handle errors
src/app/utilities/api-clients/user.js
src/app/utilities/api-clients/user.js
import http from '../http'; import { store } from '../../config/store'; import { userLoggedIn, userLoggedOut } from '../../config/actions'; export default class user { static get(email) { return http.get(`/zebedee/users?email=${email}`) .then(response => { return response; ...
JavaScript
0.000001
@@ -577,104 +577,8 @@ se;%0A - %7D).catch(error =%3E %7B%0A console.error(%60Error getting all users%60, error)%0A
0ca1c8ab35ff715f775d4849a2bd6695ec2117ac
Update handleError.js
client/lib/handleError.js
client/lib/handleError.js
import toastr from 'toastr'; this.handleError = function(error, useToastr = true) { if (_.isObject(error.details)) { for (const key in error.details) { if (error.details.hasOwnProperty(key)) { error.details[key] = TAPi18n.__(_.escapeHTML(error.details[key])); } } } if (useToastr) { return toastr.err...
JavaScript
0.000001
@@ -407,37 +407,24 @@ TAPi18n.__( -_.escapeHTML( error.detail @@ -436,17 +436,16 @@ orTitle) -) : null)
1a71d3311e21676e725187118392d0f8c61eeb93
Add trailing commas to `simpleConfig.stub.js`
stubs/simpleConfig.stub.js
stubs/simpleConfig.stub.js
module.exports = { theme: { extend: {} }, variants: {}, plugins: [] }
JavaScript
0
@@ -37,16 +37,17 @@ tend: %7B%7D +, %0A %7D,%0A @@ -73,11 +73,12 @@ gins: %5B%5D +, %0A%7D%0A
19bb3f4380392aa75ec6ed814f1e7377f46d8f4c
Remove duplicated docs, see https://github.com/phetsims/wave-interference/issues/269
js/VerticalAquaRadioButtonGroup.js
js/VerticalAquaRadioButtonGroup.js
// Copyright 2013-2018, University of Colorado Boulder /** * Convenience type for creating a vertical list of AquaRadioButtons. * * @author Sam Reid (PhET Interactive Simulations) * @author Chris Malley (PixelZoom, Inc.) */ define( function( require ) { 'use strict'; // modules var AquaRadioButton = requir...
JavaScript
0.000001
@@ -1780,35 +1780,8 @@ ons%0A - // supertype options%0A
baa5b83844e14bea66cd024e352d6b9c216937c9
Remove console statement.
selectable/static/js/jquery.dj.selectable.js
selectable/static/js/jquery.dj.selectable.js
$(document).ready(function() { $(":input[data-selectable-url]").each(function(i, elem) { var url = $(elem).attr('data-selectable-url'); $(elem).autocomplete({ source: url, change: function(event, ui) { var allowAttr = $(this).attr('data-selectable-allow-new');...
JavaScript
0.000001
@@ -1288,47 +1288,8 @@ ) %7B%0A - console.log('Click!');%0A
2bb1da1ecaf67fcce3f8eaf382da48ea69b26c6e
Fix for merge issue
sudoku-new/js/Generator.js
sudoku-new/js/Generator.js
Generator = function() { var getAcrossFromNumber = function(n) { var k = n % 9; if (k==0) return 9; else return k; } var getDownFromNumber = function(n) { var k; if(getAcrossFromNumber(n) == 9) k = n / 9; else k = n / 9 + 1; k = (k * 10) / 10; //Rounding hack return k...
JavaScript
0
@@ -2898,39 +2898,8 @@ );%0D%0A -%09%09%09%09%09%09%09cell.IsEditable(true);%0D%0A %09%09%09%09 @@ -3066,40 +3066,8 @@ );%0D%0A -%09%09%09%09%09%09%09cell.IsEditable(false);%0D%0A %09%09%09%09
e41790347d05d53aef42f187f7bc9f92dc021e74
Add sketch of solution to #25
src/animate.js
src/animate.js
// Animate: call model update and view render at each animation frame. // var tick = require('./model/tick') var render = require('./view/render') var animationLoop = function (state) { var present, dtms // Time difference from previous frame in milliseconds present = Date.now() dtms = (state.prevFrameTime ==...
JavaScript
0
@@ -1068,16 +1068,184 @@ %0A %7D%0A%7D%0A%0A +// var constantLoop = function (state) %7B%0A// tick(state, 1 / 60)%0A// render(state)%0A// window.setTimeout(function () %7B%0A// constantLoop(state)%0A// %7D, 500)%0A// %7D%0A%0A module.e @@ -1338,22 +1338,49 @@ tionLoop(state)%0A + // constantLoop(stat...
f063b853b8dab7d4b1a3f48ecb583bc078c27e15
Fix typo on Bastard of Robert (#2597)
server/game/cards/14-FotS/BastardOfRobert.js
server/game/cards/14-FotS/BastardOfRobert.js
const DrawCard = require('../../drawcard'); class BastardOfRobert extends DrawCard { setupCardAbilities(ability) { this.persistentEffect({ location: 'any', condition: () => this.controller.anyCardsInPlay(card => card.name === 'Robert Baratheon'), targetController: 'curre...
JavaScript
0.000015
@@ -804,16 +804,17 @@ hand +l er: cont
c6a3474ba348a6470011165cc8e06b271e95e910
Correct mistake name of function
www/assets/js/sofia.vue.js
www/assets/js/sofia.vue.js
'use strict'; var S = S || {}; S.vue = { el: { pages: {} }, map: {}, init: function () { S.vue.declare_filter(); S.vue.declare_compoment(); S.vue.parse_template(); S.vue.init_menu(); S.vue.init_router(); }, declare_compoment: function () { ...
JavaScript
0.027853
@@ -1821,17 +1821,16 @@ te: null - %0A @@ -3114,20 +3114,16 @@ : null;%0A - %0A @@ -3262,20 +3262,16 @@ : true;%0A - %0A @@ -4017,22 +4017,16 @@ e.update -Header Options(
ba51c80236b0bad332ea1e1f32ef394befa7bad7
add isResult and content variables
game.js
game.js
var button = []; //stores the canvases for(var i=1; i<10; i++) button[i] = document.getElementById('canvas'+i); var ctx = []; //stores the context of the canvases for(var i=1; i<10; i++) ctx[i] = button[i].getContext(); var bDisabled = []; //stores the availability of the button for(var i=1; i<10; i++) bDisabled[i] =...
JavaScript
0.000002
@@ -364,8 +364,50 @@ ginning%0A +%0Avar isResult = false;%0Avar content = %5B%5D;%0A%0A
77ab56af422b24c2dfabfe0859f8236347bf6894
use alias for sub-documents
server/portal/resources/preview-by-entity.js
server/portal/resources/preview-by-entity.js
const RoutesInfo = require('@quoin/expressjs-routes-info'); const warpjsUtils = require('@warp-works/warpjs-utils'); // const debug = require('./debug')('preview-by-entity'); const overviewByEntity = require('./overview-by-entity'); const previewImageByEntity = require('./preview-image-by-entity'); const routes = requ...
JavaScript
0.000002
@@ -418,20 +418,18 @@ %3E %7B%0A -cons +le t href = @@ -525,32 +525,343 @@ nce.id%0A %7D);%0A%0A + const aliasRelationship = entity.getRelationshipByName('Alias');%0A if (aliasRelationship) %7B%0A const aliasDocuments = await aliasRelationship.getDocuments(persistence, instance);%0A if (al...
3f22a1ad1676cc8b48f16b92f1c7a618b56b351a
Update index.js
dropdown/index.js
dropdown/index.js
'use strict'; import './view.html'; import {UtilBehavior} from "./../_behaviors/"; import {DropdownBehavior} from "./../_behaviors/"; import "./../input/"; import "./../note/"; import "./../curtain/"; class DropdownClab { get behaviors() { return [UtilBehavior, DropdownBehavior]; } beforeRegister() { ...
JavaScript
0.000002
@@ -4784,34 +4784,18 @@ earch ? -this.querySelector +$$ ('.value
8242762bc9c82ed9fe0e85ace58ada9d789ef6c8
fix the number of contacts being shown instead of the number of keys.
js/frontend/controllers/backups.js
js/frontend/controllers/backups.js
/** * Backups */ 'use strict'; define(['./module', 'frontend/port', 'darkwallet', 'bitcoinjs-lib', 'sjcl'], function (controllers, Port, DarkWallet, Bitcoin) { controllers.controller('BackupsCtrl', ['$scope', '$window', 'notify', function($scope, $window, notify) { /** * Export */ function down...
JavaScript
0
@@ -3658,23 +3658,22 @@ dentity. -contact +pubkey s).lengt
22caadacca1b91d582deeead5e368e1e7182eaf8
Fix page create bug not saving rank
public/modules/page/controllers/pages.client.controller.js
public/modules/page/controllers/pages.client.controller.js
'use strict'; angular.module('pages').controller('PagesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Pages', function($scope, $stateParams, $location, Authentication, Pages) { $scope.authentication = Authentication; $scope.create = function() { var page = new Pages({ title: this....
JavaScript
0
@@ -372,16 +372,41 @@ his.body +,%0A rank: this.rank %0A%09%09%09%7D);%0A
40aa95e0a7a4112950a909863e695fc0b4a8bc30
fix comparison
generate_webdisco_target_list.js
generate_webdisco_target_list.js
var generateWebDiscoTargetList = function () { // Generate a target list of URLs for webDisco.py // // Created by: Dan Kottmann (general URL export) // Updated by: Ryan Dorey (for use with webDisco.py) & Alex Lauerman // Usage: generateWebDiscoTargetList(); // Requires client-side updates: false...
JavaScript
0.000018
@@ -728,14 +728,24 @@ if ( -! hosts +.length %3C 1 ) %7B%0A
994189221a2f5400d5da6703aa324d265f7b1225
Add answer hint to the console.log
client/app/components/gameboard/gameboard.controller.js
client/app/components/gameboard/gameboard.controller.js
class GameboardController { constructor(Game, GlobalEvents) { 'ngInject'; this.currentAnswer = ''; this.currentMangledWord = Game.currentWord.mangled; this.game = Game; this.remainingTime = Game.remainingSeconds; this.score = 0; GlobalEvents.on(Game.NEW_WORD, (newWord) => this.onNewWord(n...
JavaScript
0.000004
@@ -900,16 +900,78 @@ angled;%0A + console.log(%60Psst, the answer is: $%7BnewWord.original%7D.%60);%0A %7D%0A%0A o
647e2c6f3e867055e095b454aaae2dc478c18099
Update stars
app/data/repos.js
app/data/repos.js
export default [ { name: 'Ember Shepherd', repo: 'ember-shepherd', stars: 102 }, { name: 'Ember Math Helpers', repo: 'ember-math-helpers', stars: 50 }, { name: 'Ember Flatpickr', repo: 'ember-flatpickr', stars: 35 }, { name: 'Ember X-Editable', repo: 'ember-x-ed...
JavaScript
0
@@ -87,9 +87,9 @@ : 10 -2 +3 %0A %7D @@ -170,17 +170,17 @@ stars: 5 -0 +3 %0A %7D,%0A @@ -251,17 +251,17 @@ stars: 3 -5 +6 %0A %7D,%0A
ac848da8517fe4b0ed7e402299f608f4b9e2fb43
Add secondary sort by name
client/src/leaderboard.js
client/src/leaderboard.js
import Backbone from 'backbone' import _ from 'underscore' import $ from 'jquery' import Sites from './sites' import template from './leaderboardtemplate.jade' export default Backbone.View.extend({ initialize(options) { const optionsDefaults = { // Display this many results; if null, show all limit: ...
JavaScript
0.000001
@@ -60,16 +60,25 @@ import $ +, %7B get %7D from 'j @@ -162,16 +162,325 @@ e.jade'%0A +import orderBy from 'lodash/orderBy'%0A%0A// Return the name attribute of an object with beginning articles (a,%0A// an, the) removed and converted to lower-case for sorting in a more%0A// expected, human-readable way.%0Aconst so...
93d394c2fed916c0a35d69ab21e73bf945ca8325
Return parsed json from redis cache (#142)
src/cache/redis.js
src/cache/redis.js
import redis from "redis"; import Configuration from "../config/configuration.js"; const configuration = Configuration.getInstance(); let client; const mockCache = {}; try { console.log("Trying to connect with redis.."); // eslint-disable-line no-console const host = configuration.get("redis", "host"); const po...
JavaScript
0
@@ -913,13 +913,25 @@ ll, +JSON.parse( hit)) +) ;%0A
83cd61206b25a59a1887592764f44688af890337
Fix whitespace issue.
client/components/explorer/sidebar/sidebar-tab-service.js
client/components/explorer/sidebar/sidebar-tab-service.js
/** * @copyright Copyright 2015 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 require...
JavaScript
0.000212
@@ -4293,18 +4293,16 @@ ');%0A%7D;%0A%0A - SidebarT
2782074cb04113ba1be15afc84f8620bcdf1ea58
use this.installDependencies instead of making two calls to this.npmInstall
app/index.js
app/index.js
var generators = require('yeoman-generator'); function dependencyObjectToArray(dependency) { var dependencies = []; Object.keys(dependency).forEach(function(key) { dependencies.push(key + '@' + dependency[key]); }); } module.exports = generators.Base.extend({ prompting: function () { ...
JavaScript
0.000001
@@ -1,243 +1,1743 @@ -var generators = require('yeoman-generator');%0A%0Afunction dependencyObjectToArray(dependency) %7B%0A var dependencies = %5B%5D;%0A%0A Object.keys(dependency).forEach(function(key) %7B +/*-------------------------------------------------------------------------------------------------------...
e33efcb44db9cd39a937b435b307d3e38daad9c4
Fix error when user tried to divide by zero within chained operations
app/index.js
app/index.js
{ let tape = []; const disableButtons = () => { const buttonsExceptAC = document.querySelectorAll('button:not(#ac)'); for (const button of buttonsExceptAC) { button.disabled = true; } }; const enableButtons = () => { const buttons = document.getElementsByTagName('button'); for (const...
JavaScript
0.000014
@@ -3905,39 +3905,52 @@ %7B%0A -math.doMath();%0A +while (tape.length %3E 2) %7B%0A ma @@ -3954,32 +3954,44 @@ math.doMath();%0A + %7D%0A %7D%0A
e4d72c34131cb0331bdc2839e73156e99ab6dc22
handle 'Invalid Date' error
www/convertUtils.js
www/convertUtils.js
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
JavaScript
0.00001
@@ -1040,32 +1040,66 @@ ntact.birthday;%0A + if (value !== null) %7B%0A try %7B%0A @@ -1088,32 +1088,36 @@ try %7B%0A + contac @@ -1158,16 +1158,266 @@ alue));%0A + %0A //we might get 'Invalid Date' which does not throw an error%0A ...
3b60ba9f2fa535c4a2518fdc7400544083387d88
improve logging messages
tasks/asset_cachebuster.js
tasks/asset_cachebuster.js
/* * grunt-asset-cachebuster * https://github.com/gillesruppert/grunt-asset-cachebuster * * Copyright (c) 2013 Gilles Ruppert * Licensed under the MIT license. */ 'use strict'; function isCss(filepath) { return (/\.css$/).test(filepath); } function isHtml(filepath, extension) { var htmlTest = new RegExp('\...
JavaScript
0.000011
@@ -1330,12 +1330,17 @@ ln(' -File +Assets in %22' @@ -1358,19 +1358,23 @@ t + '%22 c -rea +achebus ted.');%0A @@ -2414,18 +2414,27 @@ to -write file +cachebust assets in : '
5143bd3b48035df43f59a267f0cff331eea93425
Remove unused variable
src/cli/servers.js
src/cli/servers.js
const fs = require('fs') const path = require('path') const tildify = require('tildify') const mkdirp = require('mkdirp') const common = require('../common') const conf = require('../conf') const serversDir = common.serversDir mkdirp.sync(serversDir) module.exports = { add, rm, ls } function getId (name) { ...
JavaScript
0.000015
@@ -154,40 +154,8 @@ on') -%0Aconst conf = require('../conf') %0A%0Aco
0c3d42e28b7bf98674a6e6d5d1d646c4b507da93
Store author information
app/index.js
app/index.js
'use strict'; var compareVersion = require('compare-version'); var yeoman = require('yeoman-generator'); var isOnline = require('is-online'); var pkgName = require('pkg-name'); module.exports = yeoman.generators.Base.extend({ initializing: function () { this.pkg = require('../package.json'); this.compareVers...
JavaScript
0.000001
@@ -1749,24 +1749,42 @@ _username',%0A + store: true%0A %7D, %7B%0A @@ -1805,16 +1805,35 @@ or_name' +,%0A store: true %0A %7D, @@ -1860,16 +1860,35 @@ r_email' +,%0A store: true %0A %7D,
33cbef77b93eba3d745874c7785e283d4694953b
Update TODOs
app/index.js
app/index.js
/* * TODO: * - h5bp via bower + add variable to settings * - visuallyhidden -> vh * - humans.txt - rel attr, humans.txt, button possibility, http://humanstxt.org/Im-human.html * - uncss, class names minification * - use https://github.com/buildingblocks/grunt-combine-media-queries to minify media queries to ...
JavaScript
0
@@ -5,16 +5,45 @@ * TODO:%0A + * - delete develop branch?%0A * - h5
228be415ec67a2b86571b278ce112af62fb670cb
Add note about running `rvm use .` and `bundle install`. Fixes #1.
app/index.js
app/index.js
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var path = require('path'); var _ = require('lodash'); module.exports = yeoman.generators.Base.extend({ initializing: function () { this.pkg = require('../package.json'); }, prompting: functio...
JavaScript
0
@@ -5617,33 +5617,265 @@ -this.installDependencies( +var self = this;%0A%0A self.installDependencies(%7B%0A callback: function() %7B%0A self.log('Installation complete! Please run ' + chalk.yellow('rvm use . && bundle install') + ' to use your new Ruby gemset and to install your Ruby gems.');%0A ...
106549c1f29594ea967fda0801013bf5c1eed45a
remove stray debug
app/utils.js
app/utils.js
'use strict'; var _ = require('lodash'); var titleCase = require('title-case'); var config = require('../config/config'); var path = require('path'); var knox = require('knox'); var Q = require('q'); var randomstring = require('randomstring'); module.exports = { getNPMConfig: function() { // electron ...
JavaScript
0.000003
@@ -341,41 +341,8 @@ ) %7B%0A - debug(process.type);%0A
45a896a547be4851953435572f3dae824052101a
use parsed options to divert test output directory
UnitTests/unittest.js
UnitTests/unittest.js
/*jshint globalstrict:false, unused:false */ /*global print, start_pretty_print, ARGUMENTS */ 'use strict'; const yaml = require("js-yaml"); const _ = require("lodash"); const UnitTest = require("@arangodb/testing"); const internalMembers = UnitTest.internalMembers; const fs = require("fs"); const internal = require...
JavaScript
0
@@ -4336,20 +4336,23 @@ %0A%0A if ( -argv +options .hasOwnP @@ -4402,20 +4402,23 @@ ctory = -argv +options .testOut @@ -4481,18 +4481,16 @@ %0A %7D%0A - %0A // fo
a2a5f268e2f6922e51a07380df6cc660ff095fa0
Fix regex when no date is specified in the url, thx @kashike
src/Korobi/WebBundle/Resources/assets/js/application/datepicker.js
src/Korobi/WebBundle/Resources/assets/js/application/datepicker.js
$(function() { var moving = false; var availableDays = JSON.parse($('#available-log-days').text()); var $dateInput = $('#log-date'); $dateInput.datepicker({ format: "yyyy/mm/dd", endDate: "today", todayBtn: "linked", language: "en-GB", orientation: "top right", ...
JavaScript
0.000009
@@ -1031,16 +1031,17 @@ (/logs%5C/ +? .*/, 'lo
b334608c48b4329c039bc3d0affb2b3f62593f8a
fix label width not propagated
src/__experimental__/components/form-field/form-field.component.js
src/__experimental__/components/form-field/form-field.component.js
import React from 'react'; import PropTypes from 'prop-types'; import FormFieldStyle from './form-field.style'; import Label from '../label'; import FieldHelp from '../field-help'; import OptionsHelper from '../../../utils/helpers/options-helper'; class FormField extends React.Component { updateForm = () => { if...
JavaScript
0.000001
@@ -773,30 +773,25 @@ -labelW +w idth=%7B label
ee2c56b17ad3bcca2cdd14db60b73fe58c0a82f4
Add test for EJS from external files.
test/commands/host.test.js
test/commands/host.test.js
var ChildProcess = require('child_process'); var http = require('http'); var Promise = require('bluebird'); var fs = require('fs'); Promise.promisifyAll(fs); var quickTemp = require('quick-temp'); var assert = require('chai').assert; var expect = require('chai').expect; var intercept = require('intercept-stdout'); var...
JavaScript
0
@@ -466,16 +466,55 @@ 'test%5C') +; $(%22body%22).append(%22%3C%25-files.test %25%3E%22); ';%0Avar e @@ -576,24 +576,97 @@ s fun%22);%7D';%0A +var fileHTML = '%3Cdiv class=%22file-test%22%3E%5Cn%5CtThis is a file test%5Cn%3C/div%3E';%0A var CSS = '. @@ -1576,13 +1576,12 @@ . -catch +then (fun @@ -1586,21 +1586...
6a633c0ee0944a3514637d681700611436ed0cd1
Remove unused vars warnings for React
src/app/plugins/platform/JavaScript/templates/_eslintrc.js
src/app/plugins/platform/JavaScript/templates/_eslintrc.js
module.exports = { "env": { "es6": true, "node": true }, "parser": "@typescript-eslint/parser", "parserOptions": { "project": "tsconfig.json", "sourceType": "module" }, "plugins": [ "react", "@typescript-eslint", "implicit-dependencies" ...
JavaScript
0
@@ -586,24 +586,97 @@ nt%22,%0A %5D,%0A + %22react%22: %7B%0A %22pragma%22: %22React%22,%0A %22version%22: %22detect%22%0A %7D,%0A %22rules%22:
9887a0eada085ded2e02a34e2a871a84949f8a64
refactor Extensor
lib/assets/javascripts/esphinx/lib/extensor.js
lib/assets/javascripts/esphinx/lib/extensor.js
// require ./iterator var Extensor = {}, Iterator; (function ($) { "use strict"; Object.defineProperties($, { new: { value: function (object, writable, structure) { var ConstructorReference = Extensor.new, verbose = false,...
JavaScript
0.999057
@@ -176,24 +176,21 @@ object, -writable +final , struct @@ -315,177 +315,8 @@ se,%0A - // n%C3%A3o existe o modificador de acesso private explicitamente, ent%C3%A3o deixa enumerar a priori, no entanto ser%C3%A1 se, e somente se, caso seja um atributo%0A @@ -1055,24 +1055,21 @@ (typeof -wr...
5fd4031a828509251701489c05d5d0c3c8404277
refactor Promise
lib/assets/javascripts/esphinx/util/promise.js
lib/assets/javascripts/esphinx/util/promise.js
var esPhinx, Promise; (function($) { "use strict"; $.extend({ Promise: {} }); $.Extender.extend($.Promise, true, { new: function(options, callbackUntil) { var _accomplishResponse, _rejectResponse, whenAccomplish, ...
JavaScript
0.000186
@@ -396,16 +396,41 @@ status,%0A + promise,%0A @@ -1008,42 +1008,8 @@ var%0A - promise,%0A%0A @@ -2662,126 +2662,8 @@ ); -%0A%0A promise.catch(function(e) %7B%0A ifRaiseException(e);%0A %7D); %0A ...
731348d807a6be4f183fa018720cba1b5e9ff041
Update namespace
lib/node_modules/@stdlib/function/lib/index.js
lib/node_modules/@stdlib/function/lib/index.js
/** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
JavaScript
0.000001
@@ -1089,24 +1089,230 @@ ctor' ) );%0A%0A +/**%0A* @name function2string%0A* @memberof ns%0A* @readonly%0A* @type %7BFunction%7D%0A* @see %7B@link module:@stdlib/function/to-string%7D%0A*/%0AsetReadOnly( ns, 'function2string', require( '@stdlib/function/to-string' ) );%0A%0A %0A// EXPORTS
fec8be07f91305fb5f39cd136a8b18ef7385aa61
update test case description
src/components/school/repo/school.repo.integration.test.js
src/components/school/repo/school.repo.integration.test.js
const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const appPromise = require('../../../app'); const testObjects = require('../../../../test/services/helpers/testObjects')(appPromise); const schoolRepo = require('./school.repo'); const { SCHOOL_OF_DELETE_USERS } = require('./db'); const ...
JavaScript
0.000002
@@ -1013,19 +1013,19 @@ uld -throw error +return null if
df5a56bf96a9d0d15ccfa712c015d9de4614d6bf
Add fall-through-to-original for console functions (#793)
src/extensions/default/bramble/lib/ConsoleManagerRemote.js
src/extensions/default/bramble/lib/ConsoleManagerRemote.js
(function(transport, console) { "use strict"; function transportSend(type, args) { var data = {args: args, type: type}; transport.send("bramble-console", data); } // Implement standard console.* functions ["log", "warn", "info", "debug", "info", "error", ...
JavaScript
0
@@ -186,16 +186,71 @@ %0A %7D%0A%0A + // console namespace%0A var consoleNS = console;%0A%0A // I @@ -287,16 +287,16 @@ nctions%0A - %5B%22lo @@ -430,24 +430,131 @@ ion(type) %7B%0A + // cache the old binding%0A var oldFn = console%5Btype%5D;%0A%0A // rebind for our convenienc...
c8be9b7ab1e01172d9cfb3009ef2c040deb5b024
fix mouse up bug
src/components/PuzzlePage/puzzles/painter.js
src/components/PuzzlePage/puzzles/painter.js
import React from "react"; import "../../../styles/painter.scss"; class Rect extends React.Component { render() { return ( <rect {...this.props} className={"cell " + (this.props.isPainted ? "painted" : "")} onMouseEnter={this.props.mouseIn} onMou...
JavaScript
0.000001
@@ -391,16 +391,63 @@ useDown%7D +%0A onMouseUp=%7Bthis.props.mouseUp%7D /%3E%0A @@ -2305,24 +2305,79 @@ d%7D);%0A %7D%0A%0A + handleMouseUp(e) %7B%0A this.gameOver();%0A %7D%0A%0A checkWin @@ -3327,16 +3327,72 @@ , coor)%7D +%0A mouseUp=%7Bthis.handleMouseUp....
96f79d497a2809de71ed8cc142fa66caa5dda2c8
Switch Expressions from PropTypes to Flow Props (#2876)
src/components/SecondaryPanes/Expressions.js
src/components/SecondaryPanes/Expressions.js
// @flow import { DOM as dom, PropTypes, createFactory, PureComponent } from "react"; import { connect } from "react-redux"; import { bindActionCreators } from "redux"; import ImPropTypes from "react-immutable-proptypes"; import actions from "../../actions"; import { getVisibleExpressions, getLoadedObjects, getPa...
JavaScript
0
@@ -26,19 +26,8 @@ dom, - PropTypes, cre @@ -68,16 +68,16 @@ react%22;%0A + import %7B @@ -155,61 +155,8 @@ x%22;%0A -import ImPropTypes from %22react-immutable-proptypes%22;%0A impo @@ -525,16 +525,104 @@ s.css%22;%0A +%0Aimport type %7B List %7D from %22immutable%22;%0Aimport type %7B Expression %7D from %22....
17338c45a00474d96177a59b956f28fe343b4931
Add DOMEvent name to the Markers View (#488)
src/components/markers/ProfileMarkersView.js
src/components/markers/ProfileMarkersView.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 React, { PureComponent, PropTypes } from 'react'; import { connect } from 'react-redux'; import TreeView fr...
JavaScript
0
@@ -528,16 +528,79 @@ ctions'; +%0Aimport formatTimeLength from '../../utils/format-time-length'; %0A%0Aclass @@ -2436,32 +2436,262 @@ break;%0A%0A + case 'DOMEvent': %7B%0A category = 'DOMEvent';%0A const duration = data.endTime - data.startTime;%0A name = %60%5B$%...
948d2f1146f89763252687f9772e77e9625870cf
Change event on input event in Text component view
src/dom_components/view/ComponentTextView.js
src/dom_components/view/ComponentTextView.js
import { on, off } from 'utils/mixins'; import ComponentView from './ComponentView'; const compProt = ComponentView.prototype; export default ComponentView.extend({ events: { dblclick: 'onActive', input: 'onInput' }, initialize(o) { compProt.initialize.apply(this, arguments); this.disableEditin...
JavaScript
0.000001
@@ -3707,27 +3707,36 @@ r('c -hange:canvasOffset' +omponent:update', this.model );%0A
78c65716a714278ea76dc1d5f3e881f6c44efd88
Make the text component understand textable nodes
src/dom_components/view/ComponentTextView.js
src/dom_components/view/ComponentTextView.js
import { on, off } from 'utils/mixins'; const ComponentView = require('./ComponentView'); module.exports = ComponentView.extend({ events: { dblclick: 'onActive', input: 'onInput' }, initialize(o) { ComponentView.prototype.initialize.apply(this, arguments); this.disableEditing = this.disableEdit...
JavaScript
0.999983
@@ -2290,16 +2290,66 @@ el =%3E %7B%0A + const textable = !!model.get('textable');%0A @@ -2366,16 +2366,26 @@ ctable = +%0A !%5B'text @@ -2414,26 +2414,16 @@ (type =%3E -%0A model.i @@ -2429,26 +2429,29 @@ is(type) -%0A ) +) %7C%7C textable ;%0A @@ -2621,24 +2621...
f67b6ee7ca2f4b09a7580671871267ea1e5f390b
Fix documentation
js/app/modules/suggestedArticlesModule.js
js/app/modules/suggestedArticlesModule.js
// Copyright 2015 Endless Mobile, Inc. /* exported SuggestedArticlesModule */ const GObject = imports.gi.GObject; const Gtk = imports.gi.Gtk; const Lang = imports.lang; const Actions = imports.app.actions; const Dispatcher = imports.app.dispatcher; const InfiniteScrolledWindow = imports.app.widgets.infiniteScrolledW...
JavaScript
0
@@ -563,23 +563,8 @@ ent%0A - * card-type%0A */%0A
8426ac3bc89339fc2ec686aa1c55831d3751f22e
fix travis error
api/test/utils.js
api/test/utils.js
import bcrypt from 'bcryptjs'; import fs from 'fs'; import jwt from 'jsonwebtoken'; import mongoose from 'mongoose'; import path from 'path'; import redis from 'redis'; import sinon from 'sinon'; import { expect, request } from 'chai'; import StreamClient from 'getstream/src/lib/client'; import Personalization from 'ge...
JavaScript
0.000002
@@ -261,27 +261,27 @@ 'getstream/ -src +lib /lib/client' @@ -317,27 +317,27 @@ 'getstream/ -src +lib /lib/persona @@ -382,19 +382,19 @@ tstream/ -src +lib /lib/col
63c9b828010e307888a46249f8ca93674109dd46
Make Jobqueue view start collapsed
pyfarm/master/static/js/bootstrap-tree.js
pyfarm/master/static/js/bootstrap-tree.js
$(function () { $('.tree li:has(ul)').addClass('parent_li').find(' > span').attr('title', 'Collapse this branch'); $('.tree li.parent_li > span').on('click', function (e) { var children = $(this).parent('li.parent_li').find(' > ul > li'); if (children.is(":visible")) { children.hide(...
JavaScript
0
@@ -92,32 +92,239 @@ ', ' -Collapse this branch +Expand this branch');%0A%0A var children = $('.tree li.parent_li').find(' %3E ul %3E li');%0A children.hide('fast');%0A $('.tree li.parent_li %3E span').find(' %3E i').addClass('glyphicon-plus-sign').removeClass('glyphicon-minus-sign ');%0A +%0A
b3c40e66a7cfc462b397c7b2b6f025c53f19468f
remove old js
assets/js/index.js
assets/js/index.js
/** * Main JS file for Casper behaviours */ /* globals jQuery, document */ (function ($, sr, undefined) { "use strict"; var $document = $(document), // debouncing function from John Hann // http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ debounce = functi...
JavaScript
0.999005
@@ -1,2369 +1,4 @@ -/**%0A * Main JS file for Casper behaviours%0A */%0A%0A/* globals jQuery, document */%0A(function ($, sr, undefined) %7B%0A %22use strict%22;%0A%0A var $document = $(document),%0A%0A // debouncing function from John Hann%0A // http://unscriptable.com/index.php/2009/03/20/debounci...
528de7968400deb3989afa8ef616c36576bf22b6
make function more reusable
assets/js/index.js
assets/js/index.js
//import 'babel-polyfill'; const template_articles = require("./templates/latest_articles.hbs"); const template_github_activity = require("./templates/github_activity.hbs"); const template_github_projects = require("./templates/github_projects.hbs"); axios.get('/assets/json/articles.json') .then(function (respons...
JavaScript
0.000247
@@ -1289,13 +1289,37 @@ date +, recentDate = new Date() ) %7B%0A -%0A va @@ -1342,26 +1342,26 @@ .floor(( -new +recent Date -() - date) @@ -1370,17 +1370,16 @@ 1000);%0A -%0A var in @@ -1471,20 +1471,16 @@ %22 years - ago %22;%0A %7D%0A @@ -1574,20 +1574,16 @@ %22 months - ago %22;%0A %7D%0A @@ ...
aac3365eaf37070020c0234e12343a02eb499b6b
Remove unused code from Select effect plugin
effects/seriously.select.js
effects/seriously.select.js
/* global define, require */ (function (root, factory) { 'use strict'; if (typeof exports === 'object') { // Node/CommonJS factory(require('seriously')); } else if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['seriously'], factory); } else { if (!root.Se...
JavaScript
0
@@ -805,73 +805,8 @@ %09%7D%0A%0A -%09%09function updateAndResize() %7B%0A%09%09%09update();%0A%09%09%09me.resize();%0A%09%09%7D%0A%0A %09%09if
0f1a5d5bf3fec5a19393c3902619e6243f97b294
Bump paginga version in minified version
paginga.jquery.min.js
paginga.jquery.min.js
/*! * paginga - jQuery Pagination Plugin v0.3 * https://github.com/mrk-j/paginga * * Copyright 2015 Mark and other contributors * Released under the MIT license * https://github.com/mrk-j/paginga/blob/master/LICENSE */ !function(t,e,s,i){"use strict";function a(e,s){this.element=e,this.settings=t.extend({},g,s),...
JavaScript
0
@@ -38,17 +38,17 @@ ugin v0. -3 +4 %0A * http
1942e426ad61e9a68f5462d32a5382378bea8442
Call new library to get all todos.
problems/kata/001-todo-backend/001/app.js
problems/kata/001-todo-backend/001/app.js
var express = require('express'); var cors = require('cors'); var bodyParser = require('body-parser'); var nano = require('nano')('http://localhost:5984'); var todo = nano.db.use('todo'); var todos = require('./todo'); var app = express(); app.use(cors()); app.use(bodyParser.json()); app.get('/', function(req, res, ...
JavaScript
0
@@ -327,92 +327,21 @@ %7B%0A -console.log('get triggered');%0A var results = %5B%5D;%0A todo.view('todos', 'all_todos', +todos.getAll( func @@ -350,28 +350,31 @@ on(err, -body +results ) %7B%0A for (var @@ -369,73 +369,49 @@ -for (var row of body.rows) %7B%0A results.push(row.value);%0A %7D...
1de4b3b44b11c9550b00f5b385a4285a1edb5594
return task posted [2/16].
problems/kata/001-todo-backend/002/app.js
problems/kata/001-todo-backend/002/app.js
var express = require('express'); var cors = require('cors'); var bodyParser = require('body-parser'); var app = express(); app.use(cors()); app.use(bodyParser.json()); app.get('/', function(req, res, next) { console.log('GET / called'); res.json([]); }); app.post('/', function(req, res, next) { console.log('P...
JavaScript
0.000003
@@ -332,34 +332,40 @@ d');%0A res.json( -%5B%5D +req.body );%0A%7D);%0A%0Aapp.list
573ce44ebad8c855a061e986e239cf82eefd3d8b
Improve efficiency of randColor method
app/js/randColor.js
app/js/randColor.js
// from Material Design, http://www.google.com/design/spec/style/color.html var colors = [ '#ff5177', // pink '#03a9f4', // blue '#9c27b0', // purple '#ff9800' // orange ]; var currentIndex = 0, length = colors.length; module.exports = function () { var index; do index = Math.floor(Math.random() * length)...
JavaScript
0.000001
@@ -183,26 +183,8 @@ var -currentIndex = 0, leng @@ -203,16 +203,117 @@ length;%0A +var cycle = length - 1;%0Avar index = 0;%0A%0A// loop around the array between 0 and 360 degrees, exclusive %0Amodule. @@ -335,38 +335,45 @@ ion +randColor () %7B%0A -var index -;%0A do + = ( index -= ++ 1 + Mat @@ -...
381646c12023b9c8f0115214db9ab82a796e4db8
remove value typeof check; add image-data and image to shape validation
scripts/src/instructor.js
scripts/src/instructor.js
/*global define*/ define( function() { var signals; var instructions = { }; var valid_value_types = [ 'string', 'number' ]; var valid_shapes = [ 'rect', 'circle', 'line' ]; var reserved_keys = [ 'updated' ]; var flush = false; function init( shared ) { signals = shared.signals; signals['instru...
JavaScript
0
@@ -79,58 +79,8 @@ %7D;%0A -%09%09var valid_value_types = %5B 'string', 'number' %5D;%0A %09%09va @@ -122,16 +122,39 @@ , 'line' +, 'image-data', 'image' %5D;%0A%09%09va @@ -1023,43 +1023,55 @@ if ( - valid_value_types.indexOf( typeof +%0A%09%09%09%09%09typeof new_value !== 'undefined' &&%0A%09%09%09%09%09 new...
ee3be66e48dbac807d7115b7c9e1c9fd9d60021c
Use empty string for content property
app/models/arrow.js
app/models/arrow.js
var $ = require('jquery'); /** @class Arrow @constructor **/ var Arrow = function () { this.init.apply(this, arguments); }; Arrow.prototype = { init: function () { // jquerify 'this' this._$self = $(this); this._createAttrs(); }, /** @method invertedPosition @description returns the opp...
JavaScript
0.000185
@@ -2262,17 +2262,16 @@ ntent: %22 - %22;%5Cn';%0A
afbb7d83206ed3fa3d357851030ea5d98b871596
check for midi output device before enabling radio listeners
harmony/static/js/src/midirouter.js
harmony/static/js/src/midirouter.js
define(['lodash', 'radio', 'jazzmidibridge'], function(_, radio, JMB) { /** * The MIDI Router is responsible for translating and routing MIDI * messages from both external keyboard devices and onscreen devices. * * It directly interfaces with external devices using the Jazz Midi Bridge * (JMB) and depends ...
JavaScript
0
@@ -1132,17 +1132,322 @@ put(0);%0A -%09 +%0A%09%09%09if(this.midiOutput === false) %7B%0A%09%09%09%09console.log(%22No midi output device available.%22);%0A%09%09%09%7D else %7B%0A%09%09%09%09this.initRadioListeners();%0A%09%09%09%7D%0A%09%09%7D,%0A%09%09/**%0A%09%09 * Initializes radio listeners.%0A%09%09 *%0A%09%09...
7c1a7ffcdb94170db10a806aaa0cb0366ee3d558
Update build.js (#31)
app/models/build.js
app/models/build.js
/*! * Module dependencies */ // native modules var fs = require('fs'); var path = require('path'); const zlib = require('zlib'); // 3rd party modules var winston = require('winston'); var _ = require('lodash'); var uuid = require('node-uuid'); var mongoose = require('mongoose'); var QueryPlugin = require('mongoose-q...
JavaScript
0
@@ -1073,16 +1073,24 @@ ', 'lib' +, 'test' %5D, defau
bff6a071c243e6dc2dc6f3dca68d422108c56cb2
Make sure rotation is available
resources/assets/components/Post/index.js
resources/assets/components/Post/index.js
import React from 'react'; import { remove, map, clone } from 'lodash'; import { RestApiClient } from '@dosomething/gateway'; import { getImageUrlFromPost, getEditedImageUrl, displayCaption } from '../../helpers'; import './post.scss'; import Tags from '../Tags'; import PostTile from '../PostTile'; import Quantity fr...
JavaScript
0
@@ -2266,32 +2266,67 @@ %3C/div%3E%0A + %7Bthis.props.rotate ?%0A %3Cdiv @@ -2369,24 +2369,26 @@ + %7Bthis.state. @@ -2397,16 +2397,18 @@ ading ?%0A + @@ -2465,10 +2465,14 @@ -:%0A + :%0A @@ -2578,32 +2578,34 @@ %3E%0A + ...
659f5790ec7d8a097460662d4478d78a97ba6bd1
set game URL
app/routes/index.js
app/routes/index.js
import EmberObject from '@ember/object'; import $ from 'jquery'; import Route from '@ember/routing/route'; import config from 'steam-library/config/environment'; export default Route.extend({ model() { let hidden = JSON.parse(localStorage.getItem('hidden') || '[]'); let starred = JSON.parse(localStorage.getI...
JavaScript
0.000001
@@ -870,16 +870,87 @@ ndom();%0A + game.url = %60https://store.steampowered.com/app/$%7Bgame.appid%7D%60;%0A
4e32d689737969d18502a647c080ca0b57323a3c
Handle the case when pathSuffix is falsey
app/routes/login.js
app/routes/login.js
import Ember from 'ember'; import { inject as service } from '@ember/service'; import config from '../config/environment'; export default Ember.Route.extend({ queryParams: { rd: { refreshModel: true } }, routerService: service('-routing'), model: function(params) { // console.log("In login ro...
JavaScript
0.999999
@@ -634,16 +634,204 @@ %7C%7C %22%22;%0A + var redirectUrl = host;%0A // Append return route if one exists, ignore login route%0A if (pathSuffix && pathSuffix.indexOf('/login') === -1) %7B%0A redirectUrl += pathSuffix%0A %7D%0A // A @@ -857,16 +857,17 @@ ng if on +e exists, @@ -893,26 +893,27...
084b3e94a64d42e553cbbec5f5820c703df7a46d
Remove unneeded variable
lib/cartodb/api/overviews_metadata_api.js
lib/cartodb/api/overviews_metadata_api.js
function OverviewsMetadataApi(pgQueryRunner) { this.pgQueryRunner = pgQueryRunner; } module.exports = OverviewsMetadataApi; // TODO: share this with QueryTablesApi? ... or maintain independence? var affectedTableRegexCache = { bbox: /!bbox!/g, scale_denominator: /!scale_denominator!/g, pixel_width: /!...
JavaScript
0.000034
@@ -1402,78 +1402,29 @@ -var table_metadata = metadata%5Btable%5D;%0A if ( !table_metadata +if ( !metadata%5Btable%5D ) %7B @@ -1443,25 +1443,8 @@ - table_metadata = met @@ -1480,38 +1480,32 @@ %7D%0A -table_ metadata%5Brow.z%5D @@ -1497,16 +1497,23 @@ etadata%5B +table%5D%5...
59d226ad08c80947297f5d24165a9e63f7154876
fix selection issue
lib/components/result-view/result-view.js
lib/components/result-view/result-view.js
/* @flow */ import { CompositeDisposable } from "atom"; import React from "react"; import { observer } from "mobx-react"; import { action, observable, toJS } from "mobx"; import { Display } from "@nteract/display-area"; import { transforms, displayOrder } from "./transforms"; import Status from "./status"; import typ...
JavaScript
0
@@ -1019,24 +1019,171 @@ InEditor();%0A + %7D else if (%0A event.currentTarget.className.includes(%22inline-container%22) &&%0A document.getSelection().toString()%0A ) %7B%0A return;%0A %7D else %7B @@ -3120,17 +3120,43 @@ ight%7Dpx%60 +,%0A userSelect: %22text%22 %0A - %7D;%0A%0A...
79819099532a74b64d4dd6338e877201f08f27f4
Apply git grammar if language-git package is activated after this package
lib/controllers/commit-view-controller.js
lib/controllers/commit-view-controller.js
/** @jsx etch.dom */ /* eslint react/no-unknown-property: "off" */ import path from 'path'; import etch from 'etch'; import {autobind} from 'core-decorators'; import CommitView from '../views/commit-view'; import ModelStateRegistry from '../models/model-state-registry'; import {readFile} from '../helpers'; const CO...
JavaScript
0.000001
@@ -153,16 +153,63 @@ rators'; +%0Aimport %7BCompositeDisposable%7D from 'event-kit'; %0A%0Aimport @@ -1179,32 +1179,85 @@ geMessage;%0A %7D +%0A%0A this.subscriptions = new CompositeDisposable(); %0A etch.initia @@ -4404,24 +4404,60 @@ ox = true;%0A%0A + // TODO: don't use atom global?%0A const g...
a751bda78463df18a9bc4a34a95b2091790e8857
Fix linter
lib/helpers/api-gateway-mapping-parser.js
lib/helpers/api-gateway-mapping-parser.js
'use strict'; const velocity = require('velocityjs'); const jsonpath = require('jsonpath'); const _ = require('lodash'); /** * Parse API gateway mapping template (in Velocity Templating Language) * * @param template - Velocity template string * @param params - Object containing the parameter values (path, head...
JavaScript
0.000002
@@ -1017,16 +1017,17 @@ )%7C(%22)/g, + %22%5C%5C$1$2%22
4f6259cf89544d37768d11b371846b758f97d124
read categories from api
services/response/categoryMenuResponse.js
services/response/categoryMenuResponse.js
'use strict'; function CategoryMenuResponse() { } CategoryMenuResponse.prototype = { getResponse: function (categories) { var response = { attachment: { type: "template", payload: { template_type: "button", text: "What do ...
JavaScript
0
@@ -393,564 +393,8 @@ - %7B%0A type: %22postback%22,%0A title: %22Pizza%22,%0A payload: %22category_1%22%0A %7D,%0A %7B%0A type: %22postback%22,%0A ...
d7477cba168c6294b34cfdb02070b03a653af16b
Drop custom confirm box from open-all-notifications (#1230)
source/features/open-all-notifications.js
source/features/open-all-notifications.js
import {h} from 'dom-chef'; import select from 'select-dom'; import delegate from 'delegate'; import pEvent from 'p-event'; import observeEl from '../libs/simplified-element-observer'; import * as icons from '../libs/icons'; import {groupSiblings} from '../libs/group-buttons'; import {safeElementReady, safeOnAjaxedPage...
JavaScript
0
@@ -1,16 +1,46 @@ +/* eslint-disable no-alert */%0A import %7Bh%7D from @@ -121,38 +121,8 @@ e';%0A -import pEvent from 'p-event';%0A impo @@ -283,26 +283,8 @@ rt %7B -safeElementReady, safe @@ -720,24 +720,27 @@ iner);%0A%09if ( +%0A%09%09 unreadNotifi @@ -786,499 +786,106 @@ ount -) %7B%0A%09%09// Open conf...
26c045ad664979e4f845e96fda5ebe1b9c5535be
Use Link component instead of route patch
js/src/forum/addMentionedByList.js
js/src/forum/addMentionedByList.js
import { extend } from 'flarum/extend'; import Model from 'flarum/Model'; import Post from 'flarum/models/Post'; import CommentPost from 'flarum/components/CommentPost'; import PostPreview from 'flarum/components/PostPreview'; import punctuateSeries from 'flarum/helpers/punctuateSeries'; import username from 'flarum/he...
JavaScript
0
@@ -159,24 +159,67 @@ mmentPost';%0A +import Link from 'flarum/components/Link';%0A import PostP @@ -3143,15 +3143,17 @@ %3C -a route +Link href =%7Bap @@ -3390,17 +3390,20 @@ %3C/ -a +Link %3E%0A
868e8936498cf04ac088fe6a77d6366790bf8ff1
Fix uniform upload bug
src/execute.js
src/execute.js
/* Copyright (c) 2011 Cimaron Shanahan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
JavaScript
0
@@ -3894,17 +3894,26 @@ 0; j %3C -4 +components ; j++) %7B
73bd98c67af67f2478bf945f5a90d9b3c45dfc21
Use highland instead of through.
test/fixtures/vegetable.js
test/fixtures/vegetable.js
// __Dependencies__ var mongoose = require('mongoose'); var express = require('express'); var async = require('async'); var baucis = require('../..'); var config = require('./config'); // __Private Module Members__ var app; var server; var controller; var subcontroller; // __Fixture Schemata__ var Schema = mongoose.S...
JavaScript
0
@@ -9,24 +9,53 @@ endencies__%0A +var _ = require('highland');%0A var mongoose @@ -2785,31 +2785,31 @@ is.incoming( -through +_().map (function () @@ -2799,32 +2799,35 @@ ).map(function ( +doc ) %7B%0A this @@ -2814,36 +2814,35 @@ (doc) %7B%0A -this +doc .field = 'boom'; @@ -3076,23 +3076,23 @@ ...
7d8d3b776e88a4caa95514f84706cabc5a6c5f22
Update find_emoji.js
actions/find_emoji.js
actions/find_emoji.js
module.exports = { //--------------------------------------------------------------------- // Action Name // // This is the name of the action displayed in the editor. //--------------------------------------------------------------------- name: "Find Custom Emoji", //--------------------------------------...
JavaScript
0.000003
@@ -267,16 +267,36 @@ om Emoji + in Specified Server %22,%0D%0A%0D%0A// @@ -5015,12 +5015,14 @@ nd of module +%0D%0A
3c2950a6a27327604ddb7f88e30c39a403085d6b
use new interface config
test/integration/runner.js
test/integration/runner.js
/** * Run Integration Tests * * Uses the waterline-adapter-tests module to * run mocha tests against the currently implemented * waterline API. */ var tests = require('waterline-adapter-tests'), adapter = require('../../lib/adapter'), mocha = require('mocha'); /** * Build a Postgres Config File */ va...
JavaScript
0.000001
@@ -465,16 +465,121 @@ 432%0A%7D;%0A%0A +/**%0A * Expose Interfaces Used In Adapter%0A */%0A%0Avar interfaces = %5B'semantic', 'queryable', 'migratable'%5D;%0A%0A /**%0A * R @@ -648,13 +648,37 @@ : config +, interfaces: interfaces %7D);%0A
a62718719ed1b74feb88c61198b61c98e666120d
Add bootstrap to browserify
dinosaurs/js/index.js
dinosaurs/js/index.js
var getThat = {}; var m = require('mithril'); getThat.view = require('dinosaurs/views/index.js'); getThat.controller = require('dinosaurs/controllers/index.js'); m.route(document.body, '/', { '/': getThat, });
JavaScript
0.000001
@@ -1,12 +1,102 @@ +window.$ = window.jQuery = require('jquery');%0Arequire('bootstrap/dist/js/bootstrap.js');%0A%0A var getThat
8b4e404ee3b6e51847d47a1490669cf8357ecc29
Change public event to event list.
src/js/main.js
src/js/main.js
;(function(){ angular.module('flockTogether', ['ngRoute'], function($routeProvider, $httpProvider) { $routeProvider .when('/', { templateUrl: 'partials/public_event_list.html', controller: 'publicListCtrl' })//END .when '/home' .when('/login', { templateUrl: 'partials/l...
JavaScript
0.000002
@@ -171,15 +171,8 @@ als/ -public_ even @@ -210,14 +210,13 @@ r: ' -public +event List
b31e6d62bd55fa6120b41442f6969164815b07af
Add propTypes
src/js/components/CreateServiceModalUniversePanelOption.js
src/js/components/CreateServiceModalUniversePanelOption.js
import React from 'react'; import packageServiceImage from '../../img/service-picker-options/service-image-package-large@2x.png'; import CreateServiceModalServicePickerOption from './CreateServiceModalServicePickerOption'; import CreateServiceModalServicePickerOptionContent from './CreateServiceModalServicePickerOptio...
JavaScript
0.000001
@@ -1072,16 +1072,148 @@ %0A %7D%0A%7D%0A%0A +CreateServicePickerUniverseOption.propTypes = %7B%0A columnClasses: React.PropTypes.string,%0A onOptionSelect: React.PropTypes.func%0A%7D;%0A%0A module.e
4a82a9f7d96142c844443a4aff97bb141e10d969
Remove <br>
src/js/controllers/buy-bitcoin/add-card-form.controller.js
src/js/controllers/buy-bitcoin/add-card-form.controller.js
'use strict'; (function () { angular .module('bitcoincom.controllers') .controller('buyBitcoinAddCardFormController', addCardFormController); function addCardFormController( gettextCatalog , $log , moonPayConfig , moonPayService , popupService , ongoingProcess ,$scope ) { var ...
JavaScript
0
@@ -1815,112 +1815,8 @@ %7D);%0A - if (responseMessage) %7B%0A message += '%3Cbr%3E%3Cbr%3E' + responseMessage;%0A %7D%0A
7bf5ac379798af04d7cb82007e28ed40cdee7a62
fix options disambiguation ReactDOM vs opts
src/options.js
src/options.js
import browser from './util/browser' /** * Throws an error based on the warning * If the last argument is a DOM node, it * coerces it to a string before throwing. * @returns {undefined} */ const throwError = function (...args) { const last = args[args.length - 1] if ( last.outerHTML ) { args[args.length -...
JavaScript
0.000001
@@ -2726,16 +2726,82 @@ === -3 +2%0A ? args%5B1%5D.version !== undefined%0A ? +%5B args +%5B0%5D, args%5B1%5D, %7B%7D%5D%0A : %5B @@ -2829,16 +2829,27 @@ %5D %7C%7C %7B%7D%5D +%0A : args %0A%0A if (
cd00aa1f5cd2e0fdbad32b32172715b3fbf32a9a
change variable name to match actual type
easy/c263/spec.js
easy/c263/spec.js
import test from 'ava'; import challenge from '.'; const cut = int => int.toString().substr(0, 11); // https://www.reddit.com/4fc896/ test('Challenge #263 [Easy] Calculating Shannon Entropy of a String', t => { t.true(cut(challenge('122333444455555666666777777788888888')) == 2.794208683); t.true(cut(challenge('56...
JavaScript
0.000008
@@ -61,18 +61,24 @@ t = -int =%3E int +double =%3E double .toS
d1856e8b4ee40cea475a648ca7a14e6353ff4ea5
add new offset prop to example
example/main.js
example/main.js
'use strict'; var React = require('react'); var ReactDOM = require('react-dom') var VisibilitySensor = require('../'); var Example = React.createClass({ getInitialState: function () { return { msg: '' }; }, onChange: function (isVisible) { this.setState({ msg: 'Element is now ' + (isVisible ? 'vi...
JavaScript
0
@@ -798,16 +798,53 @@ ibility%7D +%0A offset=%7Bthis.props.offset%7D %3E%0A
9c6d9eaf9926d6f205e10999e7a5d8af1b80657f
resolve merge conflict
example/main.js
example/main.js
import React from 'react'; import ReactDOM from 'react-dom'; import ExamplePage from './ExamplePage'; // For me this obfuscates the location of the error when searching from console. Not sure why it's necessary. var warn = console.warn; console.warn = function(warning) { throw new Error(warning); warn.apply(...
JavaScript
0.000002
@@ -19,17 +19,16 @@ 'react'; -%0A import R @@ -64,538 +64,330 @@ ort -ExamplePage from './ExamplePage';%0A%0A// For me this obfuscates the location of the error when searching from console. Not sure why it's necessary.%0Avar warn = console.warn;%0A%0Aconsole.warn = function(warning) %7B%0A throw new Error(warni...
8ab414031dc65edb53674e6c69f0b90f893aa64a
Correct pathing for different OS's in test
test.js
test.js
/* eslint-disable no-multi-spaces */ var nodeFLIF = require('./index.js'); var path = require('path'); function testIdentify () { var catFLIF = path.join('.', 'sample', 'cat.flif'); var outputFLIF = path.join('.', 'sample', 'output.flif'); var catData = nodeFLIF.identify(catFLIF); var outputData = nod...
JavaScript
0.000001
@@ -419,25 +419,37 @@ ation': +path.join( 'sample -%5C%5C +', ' cat.flif @@ -445,24 +445,25 @@ , 'cat.flif' +) %7D,%0A @@ -792,17 +792,29 @@ n': +path.join( 'sample -%5C%5C +', ' outp @@ -821,16 +821,17 @@ ut.flif' +) %7D,%0A
57b6ff8770cf0a5c030aa52bcd323a5d43c39a7e
update example
example/test.js
example/test.js
var debug = require('debug')('site-parser:testapp'); var util = require('util'); var site = require('./template'); var SiteParser = require('../lib'); var siteParser = new SiteParser({ timeOut: 5000 }); siteParser.on('data', function (result) { debug('got updated data'); debug(util.inspect(result, { color...
JavaScript
0.000001
@@ -206,146 +206,31 @@ );%0A%0A -siteParser.on('data', function (result) %7B%0A debug('got updated data');%0A debug(util.inspect(result, %7B colors: true, depth: null %7D));%0A%7D +debug('running scraper' );%0A%0A @@ -244,18 +244,18 @@ ser. -on('error' +parse(site , fu @@ -264,157 +264,108 @@ tion - (err -...
7dc411b162135162ccc66dacd4541583a10becc5
Fix assetRoots when starting in node_modules
packager/packager.js
packager/packager.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. */ 'use strict...
JavaScript
0
@@ -2051,16 +2051,159 @@ else %7B%0A + if (__dirname.match(/node_modules%5C/react-native%5C/packager$/)) %7B%0A options.assetRoots = %5Bpath.resolve(__dirname, '../../..')%5D;%0A %7D else %7B%0A option @@ -2250,16 +2250,20 @@ '..')%5D;%0A + %7D%0A %7D%0A%0Aconso
b692a1ec6adba52e19ebc304992efbf7685d0aea
reset minion
test.js
test.js
var superagent = require("superagent"), chai = require("chai"), expect = chai.expect, should = require("should"); describe("Index", function () { it("renders HTML", function (done) { superagent.get("http://localhost:3000/") .end(function (e, res) { (e === null).should.equal(true); ...
JavaScript
0.000001
@@ -631,17 +631,16 @@ an updat -e %22);%0A
795d19f9c76a50c410944fa7a09f21e7ecc0690c
add new test
test.js
test.js
if (typeof document === 'undefined') { var jsdom = require("node-jsdom").jsdom; global.document = jsdom('<!doctype html><html><body></body></html>'); global.window = document.parentWindow; global.navigator = {userAgent: ''}; } var assert = require('assert'); var React = require('react/addons'); var TestUtils...
JavaScript
0.000001
@@ -654,18 +654,25 @@ omponent +, items ;%0A - %0A bef @@ -1041,20 +1041,16 @@ %0A%0A -var items = @@ -1778,32 +1778,217 @@ our');%0A %7D);%0A%0A + it('should have a textContent of %22hi%22', function() %7B%0A post.update(%7Bname: 'hi'%7D);%0A var name = React.findDOMNode(post).textCont...
c00c172e560c1175984301b4c699837651de537e
Update bin/ to be executable.
bin/phonegap.js
bin/phonegap.js
#!/usr/bin/env node // Module dependencies. var fs = require('fs'); var path = require('path'); var phonegap = require('../lib/phonegap'); // Load package.json var packageJSON = JSON.parse(fs.readFileSync(path.join(__dirname,'..','package.json'), 'utf8')); // Set the help message var help = function() { conso...
JavaScript
0