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
f3dfda01a6ba89cf689c3f240ed7b5931e225df6
Fix address iteration
beacon.js
beacon.js
var config = require('./config') var engine = require('./engine') var hooks = require('./hooks') var log = require('./log').logger('beacon') var request = require('request') var Q = require('q'); var Beacon = function(options) { var options = options || {} this.url = options.url if(!this.url) { throw new Error('B...
JavaScript
0.000004
@@ -2080,17 +2080,17 @@ ion( -idx, addr +addr, idx ) %7B%0A @@ -3039,16 +3039,42 @@ sage) %7B%0A +%09%09%09//console.log(message)%0A %09%09%09reque
9d33bab900967cf8fe2e9ecb97d608e98c2d36e0
Index correctly
blotpw.js
blotpw.js
/*global chrome queue*/ (function(){ function getHostname(url) { var a = document.createElement('a'); a.href = url; return a.hostname; } // Returns whether or not a URL is either HTTP or HTTPS. function urlIsHttp(url) { var a = document.createElement('a'); a.href = url; return a.protocol == 'http:' || a.pr...
JavaScript
0.000001
@@ -1269,20 +1269,21 @@ = items -. +%5B key +%5D ;%0A
c575eae813cd018c4027ca3ba8b31647f9569923
Replace ok with created response
app/templates/api/controllers/AuthController.js
app/templates/api/controllers/AuthController.js
/** * AuthController * @description :: Server-side logic for manage user's authorization */ var passport = require('passport'); module.exports = { /** * Sign in by local strategy in passport */ signin: function (req, res) { passport.authenticate('local', function (error, user, info) { ...
JavaScript
0.000007
@@ -1106,34 +1106,39 @@ res. -ok +created (%7B%0A
37dfeb6614b5acec47f518f212102464fb724274
Teste de build com js
modulo-client/src/components/input.js
modulo-client/src/components/input.js
/** * Number-Field */ function initNumberField(){ var targets = $('.number-field input'); jQuery.each(targets, function(i, target) { if(target !== undefined) { var jQueryTarget = $(target); $(jQueryTarget).on('change', function() { var jQuerySelf = $(this); var functionName = jQuerySelf.attr('data-...
JavaScript
0
@@ -1309,24 +1309,64 @@ 9.999-99%22);%0A +%09$(%22.cnpj%22).mask(%2299.999.999/9999-99%22);%0A %09$(%22.cep%22).m
9c52787c7e70489d5f5737dad99525031b9cb7bd
add user collection
src/client/lib/horizon.js
src/client/lib/horizon.js
import Horizon from '@horizon/client'; import { API_BASE, COLLECTIONS } from '../constants'; export const hz = Horizon({ authType: 'token', host: API_BASE, secure: true }); export const hzRooms = hz(COLLECTIONS.ROOMS);
JavaScript
0
@@ -213,8 +213,54 @@ ROOMS);%0A +export const hzUsers = hz(COLLECTIONS.USERS);%0A
166365fd38f51f79e69e028a1c11e2620eddcb99
Remove navigation order hijacking. Earlier, we move the selected kind and stories to the top. It's kind a weird and discussed on #21
src/client/ui/controls.js
src/client/ui/controls.js
import React from 'react'; export default class StorybookControls extends React.Component { getKindNames() { const { storyStore, selectedKind } = this.props; if (!storyStore) { return []; } const kinds = storyStore.map(({ kind }) => kind); const selectedKindIndex = kinds.indexOf(selectedKi...
JavaScript
0
@@ -131,22 +131,8 @@ tore -, selectedKind %7D = @@ -136,32 +136,32 @@ %7D = this.props;%0A + if (!storySt @@ -199,21 +199,14 @@ -const kinds = +return sto @@ -242,212 +242,8 @@ d);%0A - const selectedKindIndex = kinds.indexOf(selectedKind);%0A%0A // add the selected kind to the top of the list%0...
890dfd207776934d23e746dfd5077a23a1f67182
Remove unused declaration
src/components/AboutUs.js
src/components/AboutUs.js
// Page to create/About Us import React from 'react'; import { Link } from 'react-router-dom'; import links from '../constants/links'; const AboutUs = (props) => { return ( <div> <h1>AboutUs page</h1> Check us out on <a href={links.github}>Github</a>! </div> ); }; export default AboutUs;
JavaScript
0.000001
@@ -52,49 +52,8 @@ t';%0A -import %7B Link %7D from 'react-router-dom';%0A impo
687747f1205597f41510375159bedd8b4888ddb9
Correct wrong invariant checks
src/components/ngRedux.js
src/components/ngRedux.js
import Connector from './connector'; import invariant from 'invariant'; import isFunction from '../utils/isFunction'; import {createStore, applyMiddleware} from 'redux'; export default function ngReduxProvider() { let _reducer = undefined; let _middlewares = []; let _storeEnhancer = undefined; this.createStor...
JavaScript
0.000141
@@ -516,39 +516,38 @@ %0A typeof -selecto +reduce r%0A );%0A%0A @@ -738,14 +738,19 @@ of s -electo +toreEnhance r%0A
bc7cacc92a1cce5497be9a5f54edca5dc3eeae8a
fix duplicated search entries
packages/admin/src/components/MenuTree/MenuTree.js
packages/admin/src/components/MenuTree/MenuTree.js
import React from 'react' import PropTypes from 'prop-types' import {StyledMenuEntryWrapper} from './StyledComponents' import MenuItem from './MenuItem' import {prepareMenuTree} from '../../utils/navigationUtils' const MenuTree = ({ items, searchFilter, typeMapping, requireSearch }) => { if (requireSearch &...
JavaScript
0.000001
@@ -521,20 +521,29 @@ ems.map( +( item +, index) =%3E (%0A @@ -566,24 +566,20 @@ key=%7Bi -tem.name +ndex %7D%0A
55785bf43268c88bde20c28e88c26685d79ff11c
fix links on install page
public/landing/application.client.js
public/landing/application.client.js
/* globals angular */ 'use strict'; angular.module('betterfriendsLanding', ['ionic']); // routes angular.module('betterfriendsLanding').config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { $stateProvider .state('respond', { url: '/r/:eid/:inviteCode', ...
JavaScript
0
@@ -1672,54 +1672,64 @@ ll/b -a99bd94a202a6c4b4142ee99b83eac7-MTM3NDk0NTQ/'; +0917ddaaf8336dda336598c7613a26e-MTM3NDk5Nzk/';%0A //i @@ -1994,24 +1994,70 @@ ta));%0A +//TODO: off for now to force upgrade.%0A // $window.loca
6e7bd136a7bfbd7aa055f79d7c783f95481afd74
make selectedfilters accessible (#1132)
packages/web/src/components/basic/SelectedFilters.js
packages/web/src/components/basic/SelectedFilters.js
import React, { Component } from 'react'; import { withTheme } from 'emotion-theming'; import { setValue, clearValues } from '@appbaseio/reactivecore/lib/actions'; import types from '@appbaseio/reactivecore/lib/utils/types'; import { getClassName } from '@appbaseio/reactivecore/lib/utils/helper'; import Button, { filt...
JavaScript
0
@@ -240,16 +240,34 @@ lassName +, handleA11yAction %7D from @@ -2154,16 +2154,126 @@ + 1%7D%60%7D%0A +%09%09%09%09%09%09%09tabIndex=%220%22%0A%09%09%09%09%09%09%09onKeyPress=%7Bevent =%3E handleA11yAction(event, () =%3E this.remove(component, value))%7D%0A %09%09%09%09%09%09%09o @@ -3212,16 +3212,105 @@ Values%...
9af823152517282d82d4cc823b419322a25efe77
Add function to get user score from user table
server/db/models.js
server/db/models.js
var db = require('./modelAdapters'); var util = require('../core/utilities'); var validate = require('../core/routeValidations.js'); //exports.createMessage({message: 'Excellant, it works!', x: 10, y: 10, z: 10, userToken: 'live'}); exports.createMessage = function(userData) { if (!validate.validateCoordinates(user...
JavaScript
0.000002
@@ -2689,32 +2689,136 @@ serToken%5D);%0A%7D;%0A%0A +exports.retrieveUserScore = function(userToken) %7B%0A return db.where('users', %5B'token', userToken%5D);%0A%7D;%0A%0A //exports.retrie
c79843091a485501601704a7d47924bebdbca695
Change default name
src/web/config/settings.js
src/web/config/settings.js
const root = window.root; console.assert(typeof root.app.config === 'object', 'root.app.config is not an object'); const settings = { version: root.app.config.version, webroot: root.app.config.webroot, cdn: root.app.config.cdn, name: 'CNC.js', log: { level: 'warn', // trace, debug, info, w...
JavaScript
0.000005
@@ -249,19 +249,16 @@ me: 'CNC -.js ',%0A l
b5843e0ebb451a1e47d14c3aed9574914070e52e
disable save button when ajax is loading
public/assets/js/app/user.js
public/assets/js/app/user.js
$(function(){ /** * all response will be in below format * { * success : boolean, * data : {resource_object} or null, * message : string, * code : integer * } */ /** * reset the form and show it! */ $('#btn-user-add').click(function(e){ ...
JavaScript
0.000001
@@ -2967,32 +2967,33 @@ function(resp)%7B%0A +%0A @@ -2996,63 +2996,77 @@ -if(resp.success)%7B%0A%0A user = resp.data +$button.prop('disabled', false);%0A $button.html('save') ;%0A @@ -3083,44 +3083,43 @@ +%0A -$button.prop('disabled', false); + ...
04d0eced2546d289d8d70b7d1404b7c519bc6874
Remove _emit on client, wasn't much of a use anyway
public/javascripts/client.js
public/javascripts/client.js
(function(d) { "use strict"; var SpotifyRemoteClient = function(host) { this.host = host || window.location.hostname; this.elements = []; this._canTouchThis = 'ontouchstart' in window || 'createTouch' in d; this._volumeRangeBlocked = false; this._position...
JavaScript
0.000001
@@ -990,33 +990,39 @@ (command) this. -_ +socket. emit(command);%0A%0A @@ -1485,17 +1485,23 @@ d) this. -_ +socket. emit(com @@ -3913,105 +3913,8 @@ %7D;%0A%0A - SpotifyRemoteClient.prototype._emit = function(command) %7B%0A this.socket.emit(command);%0A %7D;%0A%0A //
d8b5577c891f18497d32bd998f2158389dd77470
Use touchstart instead of click for touch devices
public/javascripts/client.js
public/javascripts/client.js
(function(d) { "use strict"; var SpotifyRemoteClient = function(host) { this.host = host || window.location.hostname; this.elements = []; this._canTouchThis = 'ontouchstart' in window || 'createTouch' in d; this._volumeRangeBlocked = false; this._position...
JavaScript
0
@@ -781,16 +781,52 @@ r(%0A + this._canTouchThis ? 'touchstart' : 'click'
a6c84a27758fce3b9d2ec1cf0f14aeed7f7af50d
remove mrender event
public/js/views/trackView.js
public/js/views/trackView.js
var WO = WO || {}; WO.TrackView = Backbone.View.extend({ events: { 'click .delete-track-button' : 'deleteTrack', 'change .track-volume-slider' : 'setTrackVolume', 'click .mute-track-button' : 'muteTrack', 'change .instrument-selector' : 'changeInstrument', 'click .track-container' : 'setActiveTrac...
JavaScript
0.000002
@@ -1624,148 +1624,8 @@ ()%7B%0A - $(document).ready((function()%7B%0A this.model.set('mRender', new WO.MidiRender(this.model.cid+ ' .track-notes'));%0A %7D).bind(this));%0A %7D, @@ -3142,16 +3142,111 @@ s.$el);%0A + WO.instrumentKeyHandler(this.model.collection.settings.activeTrack.attributes.instru...
5897a3d7bdadbaa57a24c14a2d02c287540452fc
Remove misplaced comma that breaks IE8
packages/ember-data/lib/system/debug/debug_info.js
packages/ember-data/lib/system/debug/debug_info.js
require("ember-data/system/model/model"); DS.Model.reopen({ /** Provides info about the model for debugging purposes by grouping the properties into more semantic groups. Meant to be used by debugging tools such as the Chrome Ember Extension. - Groups all attributes in "Attributes" group. - Gr...
JavaScript
0.999761
@@ -1079,25 +1079,24 @@ expand: true -, %0A %7D,%0A
c0e76b05ec9a69325a325acbf10b3b52dac6f268
tweak error messages
packages/eslint-config-tester/lib/error-compare.js
packages/eslint-config-tester/lib/error-compare.js
/** * @fileoverview Compare expected errors with those from ESLint. */ goog.module('googlejs.configTester.errorCompare'); const googObject = goog.require('goog.object'); const types = goog.require('googlejs.configTester.types'); /** * Compares all ESLint results to the expected results for a list of files. * @pa...
JavaScript
0.000001
@@ -1735,18 +1735,26 @@ e = %60The -se + following ESLint @@ -2299,18 +2299,26 @@ e = %60The -se + following expecte
6c919ee4ad667670ed5d565d18090dd6cb56ee5b
Fix dependencyin model
packages/isomorphic-core/src/models/transaction.js
packages/isomorphic-core/src/models/transaction.js
const {DatabaseTypes: {JSONARRAYType}} = require('isomorphic-core'); module.exports = (sequelize, Sequelize) => { return sequelize.define('transaction', { event: Sequelize.STRING, object: Sequelize.STRING, objectId: Sequelize.STRING, changedFields: JSONARRAYType('changedFields'), }, { instanceM...
JavaScript
0
@@ -2,24 +2,8 @@ onst - %7BDatabaseTypes: %7BJS @@ -14,17 +14,16 @@ RAYType%7D -%7D = requi @@ -30,23 +30,25 @@ re(' -isomorphic-core +../database-types ');%0A
8163be8e5ffd873e1953520d0a9ea7804900a876
remove extra closing bracket
public/navigation.js
public/navigation.js
var app = angular.module('myApp', []); app.controller("Ctrl1",function($scope){ $scope.contents = { name : 'Work Experience', isDropdown: true, dropdownValues: ['HubSpot | June 2016 - Dec 2016', 'HubSpot | May 2015 - Dec 2015', 'Goldman Sachs | July 2014 - Dec 2014'] }; $scope.navBarData = [ { name...
JavaScript
0.000001
@@ -995,17 +995,13 @@ lse%0A %7D; -%0A%7D); %0A%0A%7D);
544a32414e33cee5e69eebbb0ddcfdac0f9ffa35
(refactor) add the last line
home/home.js
home/home.js
var dbConnection = require('../databaseSetup.js'); //checks if the user has received any friend requests and any contents to vote. module.exports.checkUpdates = function(req, res){ //take the userId information from the request. var userId = req.body.userId; //prepare the data object to send back with the pro...
JavaScript
0.999982
@@ -1440,8 +1440,9 @@ );%0A %0A%7D; +%0A
e1ed0981ea780a4006738cf844908ba6b16b3c72
Update Tooltip onClick fallback
src/atoms/Tooltip/index.js
src/atoms/Tooltip/index.js
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Icon from 'atoms/Icon'; import Modal from 'molecules/Modal'; import styles from './tooltip.module.scss'; class Tooltip extends React.Component { constructor(props) { super(props); this.state = { ...
JavaScript
0
@@ -607,31 +607,32 @@ penModal = ( +e ) =%3E %7B%0A - (window. @@ -697,24 +697,79 @@ rue%0A %7D);%0A + this.props.onClick && this.props.onClick(e, true);%0A %7D%0A%0A close @@ -996,16 +996,37 @@ nClick(e +, !this.state.visible );%0A %7D;%0A @@ -1176,16 +1176,16 @@ %7D%0A %7D;%0A%0A - handle @@...
6afd96d5b6f59b9d61b15fb08ec36b936d1f90b3
fix linting in circler tank
packages/jsbattle-engine/src/tanks/circler.tank.js
packages/jsbattle-engine/src/tanks/circler.tank.js
// Author: Jonathan Cross importScripts('lib/tank.js'); tank.init(function(settings, info) { settings.SKIN = "forest" wander_turn_counter = 0; circle_dir = 1.0; boost_counter = 0; prev_energy = 100; }); function controlGun(state, control) { if (!state.radar.enemy) { // Fire randomly in the hope to hi...
JavaScript
0.000001
@@ -113,16 +113,17 @@ %22forest%22 +; %0A%0A wand @@ -584,24 +584,25 @@ .x, enemy.y) +; %0A let bulle @@ -2226,16 +2226,17 @@ enemy.y) +; %0A let u
b79827e737fce4dfabe45964b86e82ee36d5241e
Add logging to Algolia index cleaning
packages/lesswrong/server/scripts/algoliaExport.js
packages/lesswrong/server/scripts/algoliaExport.js
/* global Vulcan */ import { Posts } from '../../lib/collections/posts' import { Comments } from '../../lib/collections/comments' import Users from 'meteor/vulcan:users' import { getCollection } from 'meteor/vulcan:lib'; import Sequences from '../../lib/collections/sequences/collection.js' import { wrapVulcanAsyncScrip...
JavaScript
0
@@ -4234,27 +4234,8 @@ %7D);%0A - currentPage++;%0A @@ -4655,75 +4655,395 @@ -await algoliaDeleteIds(algoliaIndex, objectIdsToDelete);%0A %7D%0A +// eslint-disable-next-line no-console%0A console.log(%60Deleting $%7BobjectIdsToDelete.length%7D object IDs for $%7BmongoIdsToDelete.length%7D mo...
c6e653a1f15ff6349650168f22bd5c73c90d6709
Update dict.tw.js
proxy_module/dict.tw/dict.tw.js
proxy_module/dict.tw/dict.tw.js
/** * 查詢 www.moedict.tw * 成功查詢的頁面:https://www.moedict.tw/%E5%8B%BE%E8%90%8C * http://localhost:3000/moedict/勾萌 * * 成功查詢的頁面:https://www.moedict.tw/%E5%AE%8B * http://localhost:3000/moedict/宋 * * 失敗查詢的頁面:https://www.moedict.tw/%E4%B8%8D%E8%90%8C * http://localhost:3000/moedict/不萌 * */ CONFIG.module_alias["...
JavaScript
0.000001
@@ -844,18 +844,16 @@ */%0A -// html_sel @@ -857,32 +857,36 @@ selector: %22. -syllable +db_info .def :first-of-ty @@ -1035,16 +1035,18 @@ */%0A +/* process: @@ -1690,16 +1690,18 @@ ;%0A %7D, +*/ %0A
64a733f8e1da5c302e1424e2ff7930b2da43198b
remove parent form submit on enter
enterKey.js
enterKey.js
/** * @copyright Urucas * @license MIT License * @version Release: 1.0.0 * @link http://urucas.com * @developers Bruno Alassia, Pamela Prosperi */ Element.prototype.enterKey = function(callback) { if(!(this instanceof HTMLInputElement && this.getAttribute("type") == "text")) { return; } // remove pare...
JavaScript
0
@@ -1124,60 +1124,4 @@ %7B%7D%0A -%0A// prevent submit default event%0Atry %7B%0A%09%0A%7Dcatch(e) %7B %7D%0A%0A
1aa77efc5126b29a3401242cb4e46f8174863cac
Add call to super in constructor because it is required
entities.js
entities.js
/* entities.js * Stuff that moves and reacts to physics */ 'use strict'; /* Point * * public: * - x * - y * - step(gravity) * * private: * - vx * - vy * - dx * - dy */ class Point { constructor(x, y, friction = 0, airFriction = 1) { // TODO: should I use point IDs??? // this.id = id++; // deb...
JavaScript
0.000001
@@ -1253,24 +1253,38 @@ or (p, q) %7B%0A + super();%0A%0A this.p = @@ -2898,24 +2898,38 @@ p = null) %7B%0A + super();%0A%0A this.s =
d7f6cf31b28e2f245afa71a27da24e090f4c0992
formatted the help output
knoxfs.js
knoxfs.js
var HDFSRequest = require('./hdfsmod'); var readline = require('readline'), rl = readline.createInterface(process.stdin, process.stdout); var user = "guest"; var pwd = "guest-password"; var hostport = "localhost:8443"; var cluster = "sandbox"; var wd = "/"; rl.setPrompt('knoxfs> '); rl.prompt(); if (typeof Strin...
JavaScript
0.999999
@@ -3074,16 +3074,20 @@ log('rm + - Usage: @@ -3123,16 +3123,20 @@ log('cd + - Usage: @@ -3173,16 +3173,19 @@ og('pwd + - Usage:
ee218756db38e3e5c7b04fc5aaf0ac6d07f6574d
Disable keyboard shortcuts when modal windows is visible
public/app/keyboardShortcuts.js
public/app/keyboardShortcuts.js
/******************************************************************************* * Copyright (C) 2012 eBay Inc. * * 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/lic...
JavaScript
0
@@ -874,32 +874,125 @@ n(function(e) %7B%0A +%09%09%09/*jshint maxcomplexity:7 */%0A%09%09%09if ($('#asimov-modal').is(%22:visible%22)) %7B%0A%09%09%09%09return;%0A%09%09%09%7D%0A%0A %09%09%09if (e.ctrlKey @@ -1460,16 +1460,78 @@ on(e) %7B%0A +%09%09%09if ($('#asimov-modal').is(%22:visible%22)) %7B%0A%09%09%09%09ret...
b1d707dc0fefe71f4d649322fa72f39f502482b1
save the model attributes, not the model's JSON representation
public/backbone.localStorage.js
public/backbone.localStorage.js
/** * Backbone localStorage Adapter * Version 1.1.7 * * https://github.com/jeromegn/Backbone.localStorage */ (function (root, factory) { if (typeof exports === 'object' && typeof require === 'function') { module.exports = factory(require("underscore"), require("backbone")); } else if (typeof define === ...
JavaScript
0.000002
@@ -2358,32 +2358,43 @@ .stringify(model +.attributes ));%0A this.rec @@ -2639,16 +2639,27 @@ fy(model +.attributes ));%0A
49555daed5c6943860eb307b98c615891c04f2ee
Update myCtrl.js
public/js/controllers/myCtrl.js
public/js/controllers/myCtrl.js
/*global angular*/ /*global controller*/ var myApp=angular.module("myApp",[]); myApp.controller("myCtrl",function($scope,$http){ $http.get("/api/name").then(function(response){ $scope.names=response.data; }); $scope.create=function(){ $http.post("/api/name",$scope.name).then(function(respons...
JavaScript
0.000003
@@ -375,16 +375,18 @@ ope.name +.n =%22%22;%0A
05d90965187038ccfcc51e61081ea9f1c8a901dc
Fix clear method in board layer.
src/board/layer.service.js
src/board/layer.service.js
/** * BoardLayer :: This class represents a layer on the board and is the base class for all board * layers. Each layer can contain it's own objects on a grid with coordinates and is responsible * for drawing itself as well as its objects onto the canvas. */ /** * Module definition and dependencies */ angular.m...
JavaScript
0
@@ -2670,118 +2670,233 @@ -this.context.clearRect(%0A 0, 0, this.context.canvas.clientWidth, this.context.canvas.clientHeight%0A +var pixelRatio = window.devicePixelRatio %7C%7C 1;%0A var width = this.context.canvas.clientWidth * pixelRatio;%0A var height = this.context.canvas.clientHeight ...
809ef19ce5e42b48a15e5fe79c3be4cd0e5359aa
Remove unnecessary comment
es6/main.js
es6/main.js
require('jquery'); require('jquery-mobile'); require('jquery.cookie'); // for flat-ui require('jquery-ui'); require('jquery-ui-touch-punch'); require('../bower_components/bootstrap/dist/js/bootstrap.js'); require('bootstrap-switch'); require('bootstrap-tagsinput'); // require('holderjs'); // require('typeahead.js'); r...
JavaScript
0
@@ -457,41 +457,8 @@ %3E %7B%0A - // alert(shiren4.data%5B0%5D.name)%0A $(
a75ce162aafba8a3fe7a753892c4588cf8197bb3
Fix volume list item quirk
src/templates/volume.js
src/templates/volume.js
import React from "react"; import { Link } from "gatsby"; import { prepareTitle } from "../common.js"; import Layout from "../components/layout"; import styled from "@emotion/styled"; import SEO from "../components/seo"; const VolumeWrapper = styled.div` border-top: 1px solid #faf9f3; `; const Volume = styled.div` ...
JavaScript
0.00001
@@ -868,16 +868,31 @@ : flex;%0A + width: 100%25;%0A @media @@ -1589,22 +1589,72 @@ %60%0A +padding: 4px 8px;%0A @media (max- width: -13 +64 0px +) %7B%0A order: 2 ;%0A + pa @@ -1654,34 +1654,40 @@ %0A padding +-left : +2 4px - 8px; +;%0A %7D %0A @media (m @@ -1678,34 +1678,34 @@ %0A %7...
9bfc53e355800310b18c32d802243ed1cfc23d29
Update jquery.responsiveImage.js
src/jquery.responsiveImage.js
src/jquery.responsiveImage.js
/*! jquery-responsive-image * Copyright (c) 2015 Jan Rembold <janrembold@gmail.com>; License: MIT */ (function ( $, window, document, undefined ) { 'use strict'; // Create the defaults var pluginName = 'responsiveImage', defaults = { source: '> span', sourcePre...
JavaScript
0.000002
@@ -6451,29 +6451,21 @@ %7D -%0A%0A + else if (win @@ -8546,8 +8546,9 @@ ument ); +%0A
ceb3717ba936cec753d25f1fac049e5640110ce4
Convert to Glimmer component
ember/app/components/fullscreen-button.js
ember/app/components/fullscreen-button.js
/* global BigScreen */ import Component from '@ember/component'; import { action } from '@ember/object'; export default Component.extend({ tagName: '', toggle: action(function () { let element = this.fullscreenElement; BigScreen.toggle(document.querySelector(element)); }), });
JavaScript
0.999793
@@ -24,25 +24,26 @@ %0Aimport -Component +%7B action %7D from '@ @@ -52,137 +52,137 @@ ber/ -componen +objec t';%0A +%0A import -%7B action %7D from '@ember/object';%0A%0Aexport default Component.extend(%7B%0A tagName: '',%0A%0A toggle: action(function +Component from '@glimmer/component';%0A%0Aexport defaul...
baa902602fbe058d150c20baa2862e962888b4ce
update jsdoc.js (#110)
packages/grafeas/.jsdoc.js
packages/grafeas/.jsdoc.js
// 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.0 // // Unless required by applicable law or agreed to in ...
JavaScript
0
@@ -1040,9 +1040,9 @@ 201 -8 +9 Goo @@ -1160,16 +1160,71 @@ 'lumen' +,%0A default: %7B%0A %22outputSourceFiles%22: false%0A %7D %0A %7D,%0A
a59f921d4efcc473dd1b90d4e6c3ff73af8d52f5
Convert to Glimmer component
ember/app/components/phase-icons-layer.js
ember/app/components/phase-icons-layer.js
import Component from '@ember/component'; import { action } from '@ember/object'; import Feature from 'ol/Feature'; import Point from 'ol/geom/Point'; import VectorLayer from 'ol/layer/Vector'; import VectorSource from 'ol/source/Vector'; import Icon from 'ol/style/Icon'; import Style from 'ol/style/Style'; const STA...
JavaScript
0.999518
@@ -1,24 +1,25 @@ import -Component +%7B action %7D from '@ @@ -28,16 +28,13 @@ ber/ -componen +objec t';%0A @@ -44,37 +44,41 @@ ort -%7B action %7D from '@ember/objec +Component from '@glimmer/componen t';%0A @@ -639,130 +639,52 @@ ult -Component.extend(%7B%0A tagName: '',%0A%0A map: null,%0A coordinates...
eb9ebc9bf00bf9a1e3ed1ad2716ab35863e0a892
add graphqlUri to browser whitelist
packages/graphql/preset.js
packages/graphql/preset.js
module.exports = { mixins: [__dirname], fragmentsFile: '<rootDir>/fragmentTypes.json', graphqlMockServerPath: '/graphql', shouldPrefetchOnServer: true, configSchema: { fragmentsFile: { type: 'string', absolutePath: true, }, graphqlUri: { type: 'string', format: 'uri', }...
JavaScript
0
@@ -153,16 +153,65 @@ : true,%0A + browserWhitelist: %7B%0A graphqlUri: true,%0A %7D,%0A config
b51687ebe876ef55d1598fc57c8f3ed6df03693d
fix location home page stats
src/js/pages/locations/app.js
src/js/pages/locations/app.js
/* global alert */ // Common modules import '../../common' import htmlEncode from 'htmlencode' const api = require('../../get-api-data') const browser = require('../../browser') const endpoints = require('../../api') const location = require('../../location/locationSelector') const templating = require('../../templa...
JavaScript
0.000001
@@ -2754,23 +2754,16 @@ ageStats -.length %0A ? c
e891bd6fb370294bb9c57b97f2ea98aa9fed2e9b
Remove comments
src/chart/chart-grouped.js
src/chart/chart-grouped.js
import * as array from 'd3-array' // import * as scale from 'd3-scale' // import * as shape from 'd3-shape' import PropTypes from 'prop-types' import React, { PureComponent } from 'react' import { View } from 'react-native' import Svg from 'react-native-svg' import Path from '../animated-path' import Chart from './char...
JavaScript
0
@@ -31,82 +31,8 @@ ay'%0A -// import * as scale from 'd3-scale'%0A// import * as shape from 'd3-shape'%0A impo
50c87cfda8472d84ffb22c086dbad95382b161af
Resolve line height style in Divider component
src/lib/components/Divider.js
src/lib/components/Divider.js
"use strict"; /*eslint no-unused-vars: 0*/ var React = require("react"); var classNames = require("classnames"); var Container = require("./layout/Container"); var mixin = require("../util/mixin"); var Divider = React.createClass({ // Component API propTypes: { width: React.PropTypes.oneOfType([ React.Prop...
JavaScript
0
@@ -1280,17 +1280,21 @@ Height: -1 +'1px' ,%0A%09%09%09%09%09m
6ff79f2d543997563e001349f3fe8737468e6f30
Update example
examples/NotificationExample/index.ios.js
examples/NotificationExample/index.ios.js
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { AppRegistry, StyleSheet, Component Text, View, } from 'react-native'; import Notification from 'react-native-notification'; class NotificationExample extends Component { render() { return ( <View style=...
JavaScript
0.000001
@@ -128,16 +128,17 @@ omponent +, %0A Text, @@ -146,16 +146,36 @@ View,%0A + TouchableOpacity,%0A %7D from ' @@ -296,262 +296,422 @@ %7B%0A -render() %7B%0A return (%0A %3CView style=%7Bstyles.container%7D%3E%0A %3CText style=%7Bstyles.welcome%7D%3E%0A Welcome to React Native!%0A ...
453a6b48e2deb1e3f20339ca22cd705f8761ca6a
Fix utils errors
app/lib/utils.js
app/lib/utils.js
/** * utils.js * * Common helper functions. */ var fs = require('fs-extra') var child_process = require('child_process') var path = require('path') /** * Uncompress the given src archive file to dst folder. * * Returns the name of the uncomressed file (caller is responsible * for cleaning it up eventually). *...
JavaScript
0.000179
@@ -78,26 +78,25 @@ ')%0Avar child -_p +P rocess = req @@ -408,26 +408,25 @@ )%0A%0A child -_p +P rocess.exec(
8ab7d06b995f370062b488448ef00c757e371d96
Update check_if_user_reacted_MOD.js (#406)
actions/check_if_user_reacted_MOD.js
actions/check_if_user_reacted_MOD.js
module.exports = { name: "Check If User Reacted", section: "Conditions", subtitle: function(data) { const results = ["Continue Actions", "Stop Action Sequence", "Jump To Action", "Jump Forward Actions"]; return `If True: ${results[parseInt(data.iftrue)]} ~ If False: ${results[parseInt(data.iffalse)]}`; }, fi...
JavaScript
0
@@ -200,16 +200,34 @@ Actions%22 +, %22Jump to Anchor%22 %5D;%0A%09%09ret
e87e1d7be36131b80d90ebee6f386e84f7492743
check if krypton supports opus
src/transcoders/Opus.js
src/transcoders/Opus.js
// Partly based on https://github.com/Rantanen/node-opus/blob/master/lib/Encoder.js const { Transform } = require('stream'); var BaseOpus, OpusEncoder, OpusEncoderName; const CTL = { BITRATE: 4002, FEC: 4012, PLP: 4014, }; for (const requireData of [ ['krypton', o => o.opus.OpusEncoder], ['node-opus', o =...
JavaScript
0.000001
@@ -272,16 +272,111 @@ n', o =%3E + %7B%0A if (!o.opus.version) throw Error('Krypton found, but Opus is not available');%0A return o.opus. @@ -382,24 +382,29 @@ .OpusEncoder +;%0A %7D %5D,%0A %5B'node- @@ -3330,32 +3330,47 @@ ds %7BOpusStream%7D%0A + * @inheritdoc%0A */%0Aclass Encode
5a7e357a990eb12ca3dc1f529af669ee6a639017
Add Websocket Send Error Handling
lib/webserver_client.js
lib/webserver_client.js
var WebSocket = require('ws'); var fs = require('fs'); var rl = require("readline").createInterface(process.stdin, process.stdout); var net = require("net"); var websocket_client = function(){ var th = this; var dir_home = process.env[process.platform == "win32" ? "USERPROFILE" : "HOME"]; var setting_file_path = ...
JavaScript
0
@@ -1095,32 +1095,40 @@ function(str)%7B%0A +%09%09try%7B%0A%09 %09%09return ws_clie @@ -1137,24 +1137,119 @@ .send(str);%0A +%09%09%7Dcatch(ex)%7B%0A%09%09%09console.log(%22%5BWEBSERVER CLIENT%5D %5BWEBSOCKET CLIENT%5D Error %22 + ex.message);%0A%09%09%7D%0A %09%7D;%0A%0A%09//----
3c1d8582cd3da407cf6f2e49bf9435bd63399a54
disable electron task;
actor-apps/app-web/gulpfile.babel.js
actor-apps/app-web/gulpfile.babel.js
'use strict'; import path from 'path'; import webpack from 'webpack'; import WebpackDevServer from 'webpack-dev-server'; import webpackConfig from './webpack.config.js'; import del from 'del'; import assign from 'lodash.assign'; import gulp from 'gulp'; import gutil from 'gulp-util'; import manifest from 'gulp-manife...
JavaScript
0.000001
@@ -3408,20 +3408,8 @@ ild' -, 'electron' %5D);%0A
b1d418628a5885ddbbade80a00cad52fcbd08c87
Fix for Collection index lookup since _.isNumber(NaN)==true
adaptors/backbone/context_adaptor.js
adaptors/backbone/context_adaptor.js
/** * Adaptor specific code for context lookups * * @author Matt DeGennaro <mdegennaro@wayfair.com> */ 'use strict'; var _ = require('underscore'); var Context = require('../../src/template/template_context'); var Backbone = require('backbone'); // List of properties that are allowed to be accessed from templ...
JavaScript
0.000045
@@ -1921,37 +1921,25 @@ && -_.isNumber(parseIn +/%5E%5Cd+$/.tes t(name -, 10) )) %7B
741d3774aa8833166aecff6793a321e1191d8455
Update add-new-active-record-test
src/sagas/__tests__/add-new-active-record-test.js
src/sagas/__tests__/add-new-active-record-test.js
/** * Copyright 2017 Yuichiro Tsuchiya * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
JavaScript
0.000001
@@ -1497,16 +1497,39 @@ h new ID + and $meta.record_count ', () =%3E @@ -1523,32 +1523,32 @@ count', () =%3E %7B%0A - const saga = @@ -1580,24 +1580,138 @@ ent_foo');%0A%0A + const mockExistingActiveRecords = %5B%0A %7B _id: 'record_aaa_111' %7D,%0A %7B _id: 'record_aaa_222' %7D,%0A %5D;%0A%0A ...
369bc873f8e41ac29ec844bb4dee532cb086daa5
use an apostrophe rather than a prime (#566)
examples/nested-components/pages/index.js
examples/nested-components/pages/index.js
import P from '../components/paragraph' import Post from '../components/post' export default () => ( <div className='main'> <Post title='My first blog post'> <P>Hello there</P> <P>This is an example of a componentized blog post</P> </Post> <hr /> <Post title='My second blog post'> ...
JavaScript
0.000001
@@ -466,17 +466,17 @@ %3CP%3EC -' +%E2%80%99 est fin%3C
605bf7b60c4a7cc7b47f03840b96660b8f6f6124
Update schedule when user change the task status
app/actions/tasks.js
app/actions/tasks.js
import { ADD_TASK, DELETE_TASK, EDIT_TASK, CHANGE_TASK_STATUS, INVALIDATE_TASKS, REQUEST_TASKS, REQUEST_TASKS_SUCCESS, REQUEST_TASKS_FAILED, UPDATE_TASK_REQUEST, UPDATE_TASK_SUCCESS, UPDATE_TASK_FAILED, UPDATE_SCHEDULE, CALL_API } from '../constants/ActionTypes'; import { STATUS_COMPLETED } fr...
JavaScript
0.000001
@@ -2923,17 +2923,16 @@ tate) =%3E - %7B%0A d @@ -3322,11 +3322,12 @@ %7D);%0A %7D +; %0A%7D%0A
a84246f1fefc03957e3bbbcc3f5bfa2f865bd64f
Fix dice command
commands.js
commands.js
const fs = require('fs'); // Commands are called with the following arguments: // commands[command](message, config, msg, ...parameters) // msg is the message content without the prefix or command module.exports = { 'ping': (message) => { message.reply("pong!"); }, // _ denotes arguments we don't ...
JavaScript
0.006807
@@ -1896,16 +1896,17 @@ age, _, +_ _, n) =%3E @@ -1920,17 +1920,40 @@ n = -n +Math.max(parseInt(n), 0) %7C%7C 6;%0A
206267073bce21c913d2fbacc36b956ecd41ced2
Remove pause from music commands
commands.js
commands.js
const ytdl = require('ytdl-core'); function msToTime(s) { let ms = s % 1000; s = (s - ms) / 1000; let secs = s % 60; s = (s - secs) / 60; let mins = s % 60; s = (s - mins) / 60; let hrs = s % 24; let days = (s - hrs) / 24; let time_str = `${secs} seconds.`; if (mins) { time_str...
JavaScript
0.000005
@@ -1449,43 +1449,8 @@ %7D,%0D%0A - %7B name: %22pause%22 %7D%0D%0A
b7fd64c2d8588097e2b4bf488a59d93d6daed83b
Change config command to edit config.js in the Shout home directory
src/command-line/config.js
src/command-line/config.js
var program = require("commander"); var child = require("child_process"); var CONFIG_PATH = process.cwd() + "/config.js"; program .command("config") .description("Edit config: '" + CONFIG_PATH + "'") .action(function() { child.spawn( "sudo", ["vi", CONFIG_PATH], {stdio: "inherit"} ); });
JavaScript
0
@@ -1,12 +1,64 @@ +var fs = require(%22fs%22);%0Avar path = require(%22path%22);%0A var program @@ -77,24 +77,56 @@ ommander%22);%0A +var mkdirp = require(%22mkdirp%22);%0A var child = @@ -155,45 +155,303 @@ %22);%0A -%0Avar CONFIG_PATH = process.cwd() + +var Helper = require(%22../helper%22);%0A%0Avar CONFIG_PAT...
85971be8f53ba4ea8443db46744f369d5fcf02b8
Move comments, remove commented code, and change concat
commands.js
commands.js
const static_commands = require('./static_commands.js') // Commands are called in the following manner: // commands[command](message, config, msg, ...parameters) // msg is the message content without the prefix or command module.exports = { 'ping': (message) => { message.edit("pong!"); }, // _ de...
JavaScript
0
@@ -306,55 +306,8 @@ %7D,%0A%0A - // _ denotes arguments we don't care about%0A @@ -328,32 +328,32 @@ (message) =%3E %7B%0A + message. @@ -489,24 +489,71 @@ %7D);%0A %7D,%0A%0A + // _ denotes arguments we don't care about%0A 'reply': @@ -833,104 +833,8 @@ %7D,%0A%0A - // 'shrug': (m...
a45b4c36faf60cff85d473c5964ae5ce6b41cd8f
add type for file arg and return in docstring for checkStatusCol
bids-validator/validators/tsv/checkStatusCol.js
bids-validator/validators/tsv/checkStatusCol.js
const Issue = require('../../utils').issues.Issue /** * Checks status column in a electroencephalography _channels.tsv file to * ensure its values are only * 'good', 'bad', or 'n/a' * @param {string[]} rows - Each row of a tsv file to be checked. * @param file - File of rows being checked, used for error message i...
JavaScript
0
@@ -253,16 +253,25 @@ * @param + %7BObject%7D file - @@ -440,16 +440,82 @@ found.%0A + * @returns %7Bnull%7D Results of this function are stored in issues.%0A */%0Acons
f985297b28849f7439e2d600f375ae4f0c77d128
Tweak styles/add edit button to Activity
src/components/Activity.js
src/components/Activity.js
import React, { Component, PropTypes } from 'react'; import moment from 'moment'; class Activity extends Component { render() { const { timestamp, activity, deleteActivity } = this.props; return ( <div className="row row--middle"> <div className="col--4 col--start"> <div className="...
JavaScript
0
@@ -172,16 +172,30 @@ Activity +, editActivity %7D = thi @@ -254,16 +254,27 @@ --middle + row--start %22%3E%0A @@ -299,22 +299,33 @@ %22col ---4 col--start + flex align-items--center %22%3E%0A @@ -353,11 +353,12 @@ me=%22 -pv- +flex %22%3E%0A @@ -395,24 +395,37 @@ on%7D%0A + %3C/div%3E%0A ...
58f2430a2ae9577fdc4406272442c0ef4db3df4e
Update content on bound value change #2
addon/components/content-editable.js
addon/components/content-editable.js
import Ember from 'ember'; export default Ember.Component.extend({ classNames: ['ember-content-editable'], classNameBindings: ['extraClass'], attributeBindings: ['contenteditable', 'placeholder'], contenteditable: true, setup: Ember.on('didInsertElement', function() { this.$().html(this.get('value')); ...
JavaScript
0
@@ -270,24 +270,174 @@ unction() %7B%0A + this.setValue();%0A %7D),%0A%0A valueChanged: Ember.observer('value', function() %7B%0A this.setValue();%0A %7D),%0A%0A setValue() %7B%0A if (this.element) %7B%0A this.$() @@ -460,26 +460,31 @@ value'));%0A + %7D%0A %7D -) ,%0A%0A stringI
53095ec8f993e726eec853327fd857c8af34af29
Update content inspection to use column-content
exporter.js
exporter.js
(function (maxWait,plstype){ var self = this, downloaded = false, playlistEntries={}, format = plstype, dialog; this.totalWait = 0; this.totalWaitSinceChange = 0; this.totalSongs = 0; this.quoteEscape = function(text) { return '"'+text.replace('"','""')+'"'...
JavaScript
0
@@ -578,24 +578,31 @@ l=%22title%22%5D . +column- content')%5B0%5D @@ -679,24 +679,31 @@ =%22artist%22%5D . +column- content')%5B0%5D @@ -782,16 +782,23 @@ lbum%22%5D . +column- content' @@ -5120,16 +5120,17 @@ .begin() +; %22%3E%3Cstron @@ -5451,22 +5451,20 @@ gin%22/%3E%3C/ -dialog +form %3E';%0A
e97e724c440e18b2053f056948b18f17cea7d6f8
Add comments about variable names.
examples/federated/core_package/webpack.config.js
examples/federated/core_package/webpack.config.js
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. const path = require('path'); const fs = require('fs-extra'); const Handlebars = require('handlebars'); const Build = require('@jupyterlab/builder').Build; const webpack = require('webpack'); const merge = require('w...
JavaScript
0
@@ -1233,24 +1233,102 @@ nc(dir);%0A%7D%0A%0A +// buildDir is a temporary directory where files are copied before the build.%0A const buildD @@ -1375,24 +1375,72 @@ buildDir);%0A%0A +// outputDir is where the final built assets go%0A const output @@ -1490,24 +1490,82 @@ utputDir);%0A%0A +// %3CschemaDir%3E/schemas...
290c2c409acebe7e623b406faa9a059cbc966b85
Fix empty language break
app/helpers/forms.js
app/helpers/forms.js
export const getBtnTextByType = (type) => { switch (type) { case 'text': return 'report.inputText'; case 'radio': return 'report.inputRadio'; case 'select': return 'report.inputSelect'; default: return 'report.input'; } }; export const parseQuestion = ({ question, form }, d...
JavaScript
0.999999
@@ -600,19 +600,45 @@ 'object' - && +) %7B%0A const parsedValue = typeof @@ -678,19 +678,66 @@ defined' -) %7B +%0A ? parsedQuestion%5Bkey%5D%5Blang%5D%0A : ''; %0A p @@ -786,35 +786,21 @@ : parsed -Question%5Bkey%5D%5Blang%5D +Value %7D;%0A
5fb389375f64c63d995555f71825761886efd48a
Switch order
spec/assets/spec_helper.js
spec/assets/spec_helper.js
//= require support/third_party_for_specs //= require support/prop_types //= require support/test_utils //= require support/mock_react_router //= require support/magic_lamp //= require_self //= require support/utils /* global window*/ App = {}; expect = window.chai.expect; (function () { 'use strict'; MagicLamp...
JavaScript
0.000001
@@ -533,51 +533,51 @@ -MagicLamp.clean();%0A this.sandbox.restore +this.sandbox.restore();%0A MagicLamp.clean ();%0A
2dd04581b434285eea4a97841de07558087592d9
Fix input box component
src/components/InputBox.js
src/components/InputBox.js
import React, { PropTypes } from 'react'; export default function InputBox(props) { return ( <div key={props.key}> {props.msg}:&nbsp; <input ref={props.ref} type="text"/> </div> ); } InputBox.propTypes = { key: PropTypes.number, msg: PropTypes.string, ref: PropTypes.object };
JavaScript
0.000022
@@ -121,16 +121,23 @@ %3E%0A +%3Clabel%3E %7Bprops.m @@ -143,15 +143,16 @@ msg%7D -:&nbsp; +%3C/label%3E %0A @@ -160,16 +160,52 @@ %3Cinput + className=%22form-control theme-form%22 ref=%7Bpr
bdd48e7c425c2ddf44f6e93ba794fe33dd17966c
Allow scrolling in modal
src/components/MainMenu.js
src/components/MainMenu.js
import React from 'react'; import classnames from 'classnames'; import ScrollLock from 'react-scrolllock'; import IconBars from '../images/icon-bars.svg'; import IconTimes from '../images/icon-times.svg'; import IconTwitterSquare from '../images/icon-twitter-square.svg'; import IconFacebookSquare from '../images/icon-...
JavaScript
0.000001
@@ -1169,16 +1169,84 @@ hidden%7D%0A + ref=%7Bel =%3E %7B%0A this.modalRef = el;%0A %7D%7D%0A @@ -1280,16 +1280,50 @@ rollLock + touchScrollTarget=%7Bthis.modalRef%7D /%3E%7D%0A
da1161407c00defc37ff8a5f81eb3630225550d6
check in L is Present in initializer
addon/initializers/leaflet-assets.js
addon/initializers/leaflet-assets.js
import { isNone } from '@ember/utils'; import config from 'ember-get-config'; /* global L */ export function initialize(/* container, application */) { if (typeof FastBoot === 'undefined') { let prefix = ''; if (!isNone(config.rootURL)) { prefix = config.rootURL; } else if (!isNone(config.baseURL)...
JavaScript
0.000005
@@ -171,16 +171,44 @@ Boot === + 'undefined' && typeof L !== 'undefi
a3e6c408f9c452135e4f68772af5c7ef8a202f1b
Allow to add groups
extension/content/firebug/css/selectorPanel.js
extension/content/firebug/css/selectorPanel.js
/* See license.txt for terms of usage */ define([ "firebug/lib/trace", "firebug/lib/object", "firebug/lib/domplate", "firebug/lib/locale", "firebug/lib/dom", "firebug/lib/css", "firebug/lib/events", "firebug/css/selectorModule", "firebug/css/selectorEditor" ], function(FBTrace, Obj,...
JavaScript
0
@@ -3614,206 +3614,11 @@ = %5B -%0A %7B%0A selector: %22div%22,%0A opened: true%0A %7D,%0A %7B%0A selector: %22p %3E span%22,%0A opened: true%0A %7D%0A %5D;%0A + %0A @@ -4246,16 +4246,462 @@ Groups%0A...
7caf2b88c8244248127c9cdab71cf5bb7d522bb1
Add a “system” property
addon/models/spacedog-schemafield.js
addon/models/spacedog-schemafield.js
import Ember from 'ember'; import Model from 'ember-data/model'; import attr from 'ember-data/attr'; const { computed, observer } = Ember; import { belongsTo } from 'ember-data/relationships'; import Constants from 'tsygan/constants'; const { types } = Constants; // This defines what a schema field is, using solely ts...
JavaScript
0
@@ -1965,16 +1965,177 @@ tring'), +%0A // Denote that a property is a read-only, system property (eg: think %22reset code%22)%0A // XXX no UI for that right now%0A system: attr('tsygan@boolean'), %0A%0A // N @@ -5925,32 +5925,412 @@ );%0A %7D%0A %7D),%0A%0A + fieldPattern: computed('pattern', %7B%0A...
fb5e152013abd93c4605781b90fea85c7a4411e2
use options in ConfTemplate
app/js/views/conf.js
app/js/views/conf.js
define([ 'jquery', 'underscore', 'backbone', 'helpers/conf', 'text!templates/basic_nav.html', 'text!templates/conf.html' ], function($, _, Backbone, ConfHelper, BasicNavTemplate, ConfTemplate){ var ConfView = Backbone.View.extend ({ el: '#main', initialize: function () { // unbind previ...
JavaScript
0
@@ -711,16 +711,86 @@ Template +,%0A %7B options: ConfHelper.options %7D ));%0A%0A
0581d9e3103ab4bbbfb7415e4e22d7d0f0adc8db
Simplify performance timer
src/util/performance.js
src/util/performance.js
import { is } from 'funkis' export async function timed(fn) { if (!is(Function, fn)) { fn = Promise.resolve.bind(Promise, fn) } const start = process.hrtime() const result = await(fn()) const duration = process.hrtime(start) const ms = (duration[0] * 1e9 + duration[1]) / 1e6 return { result, durati...
JavaScript
0.000034
@@ -2,18 +2,19 @@ mport %7B -is +val %7D from @@ -55,88 +55,15 @@ med( -fn) %7B%0A if (!is(Function, fn)) %7B%0A fn = Promise.resolve.bind(Promise, fn)%0A %7D%0A +proc) %7B %0A c @@ -118,12 +118,33 @@ wait -(fn( + Promise.resolve(val(proc ))%0A @@ -187,22 +187,25 @@ rt)%0A +%0A -const m +duration.n...
6c36d0680fbaf3bc8ab98f3600286428ee610a7c
move calendar if selected a date in prev/next month
src/components/calendar.js
src/components/calendar.js
import React from 'react'; import CalendarTitle from './calendarTitle'; import CalendarBody from './calendarBody'; import CalendarMonthSelect from './calendarMonthSelect' export default class Calendar extends React.Component { static defaultProps = { selectRange: false, locale: 'en-US' }; ...
JavaScript
0.000006
@@ -2134,16 +2134,140 @@ = date; +%0A%0A if (date.getMonth() !== this.state.month) %7B%0A this.selectMonth(date.getMonth())();%0A %7D %0A
0b21fd4e7fba446d6dc45912dca5def4f9f6ce81
Create a dataloader for every model
packages/strapi-plugin-graphql/services/Loaders.js
packages/strapi-plugin-graphql/services/Loaders.js
'use strict'; /** * Loaders.js service * * @description: A set of functions similar to controller's actions to avoid code duplication. */ const _ = require('lodash'); const DataLoader = require('dataloader'); module.exports = { loaders: {}, initializeLoader: function() { this.resetLoaders(); // Cre...
JavaScript
0.000001
@@ -490,640 +490,255 @@ -(strapi.models%5Bmodel%5D.associations %7C%7C %5B%5D).forEach(association =%3E%0A this.createLoader(%0A association.collection %7C%7C association.model,%0A association.plugin%0A )%0A );%0A %7D);%0A%0A // Reproduce the same pattern for...
52f04b4f2db20252a285a6dfc590c0a8fe3f9c85
Clarify names and fix a recursive bug
src/utils/deep-clone.js
src/utils/deep-clone.js
function extend (target, source) { if (source === null || typeof source !== 'object') { return source; } if (source.constructor !== Object && source.constructor !== Array) { return source; } if ( source.constructor === Date || source.constructor === RegExp || source.constructor === Funct...
JavaScript
0.000001
@@ -630,16 +630,27 @@ extend( +undefined, source%5Bn @@ -657,14 +657,8 @@ ame%5D -, null ) : @@ -721,19 +721,22 @@ nction ( -obj +source ) %7B%0A le @@ -737,20 +737,22 @@ %7B%0A let -copy +target ;%0A retu @@ -765,17 +765,22 @@ end( -copy, obj +target, source );%0A%7D
aa0b85ae021c614a3cfaf5ec69e63215fb46c0a3
Fix setLineDash reset.
packages/vega-scenegraph/src/util/canvas/stroke.js
packages/vega-scenegraph/src/util/canvas/stroke.js
import color from './color'; export default function(context, item, opacity) { var lw = (lw = item.strokeWidth) != null ? lw : 1, lc; if (lw <= 0) return false; opacity *= (item.strokeOpacity==null ? 1 : item.strokeOpacity); if (opacity > 0) { context.globalAlpha = opacity; context.strokeStyle = color...
JavaScript
0
@@ -23,16 +23,33 @@ olor';%0A%0A +var Empty = %5B%5D;%0A%0A export d @@ -531,20 +531,21 @@ Dash %7C%7C -null +Empty );%0A
b1563a2a392b34cf36d2e8cd60a3ec27ecae79b3
improve iterator docs
src/core/util/iterator.js
src/core/util/iterator.js
(function(){ angular .module('material.core') .config( function($provide){ $provide.decorator('$mdUtil', ['$delegate', function ($delegate){ /** * Inject the iterator facade to easily support iteration and accessors * @see iterator below */ $de...
JavaScript
0
@@ -4324,16 +4324,25 @@ alidate +Validate function @@ -4367,17 +4367,23 @@ tional%7D -r +limit R ecursion
27f6a7de35b7f222be1052efdfa44e41e7bad7d4
fix vtx normal calculation
browser/scripts/abstractThreeLoaderObjPlugin.js
browser/scripts/abstractThreeLoaderObjPlugin.js
function AbstractThreeLoaderObjPlugin(core) { Plugin.apply(this, arguments) this.desc = 'THREE.js OBJ loader' this.dirty = true this.state = { url: '' } this.input_slots = [] this.output_slots = [{ name: 'geometry', dt: core.datatypes.GEOMETRY, array: true }, { name: 'materials', dt: core.datatyp...
JavaScript
0.000004
@@ -843,20 +843,112 @@ +i) %7B%0A%09%09 -if ( +var bufferGeometryHasVtxNormals =%0A%09%09%09%09this.geometries%5Bi%5D instanceof THREE.BufferGeometry &&%0A%09%09%09%09 this.geo @@ -981,17 +981,17 @@ ormal') -= +! == undef @@ -994,16 +994,453 @@ ndefined +%0A%0A%09%09var normalGeometryHasFaceNormals =%0A%09%09%09%...
245ff02ca3d4199d78fbc6ce0be2964dbb0c8167
Make it named
src/utils/has-parent.js
src/utils/has-parent.js
export default function (el, target) { let _el = el; while (_el !== target && _el.tagName !== 'HTML') { _el = _el.parentNode; } if (_el === target) { return true; } return false; }
JavaScript
0.999999
@@ -17,16 +17,26 @@ unction +hasParent (el, tar
4c83880d8d1e30f1e9f20a37e9337ea2be60819e
Update help link selectors, Help link URLs
github-on.js
github-on.js
///////////////////////////////////////////// // Operational variables and container setup ///////////////////////////////////////////// var page = $(".site"); container = $('<div id="howto-container"></div>'), highlight = $('<div class="gh-highlight"></div>'); answer = $('<div class="answer"></div>'); $(...
JavaScript
0
@@ -573,56 +573,60 @@ n: %22 -Creating a pull request%22,%0A selector: %22.button +GitHub Logo%22,%0A selector: %22.header-logo-invertocat %22,%0A @@ -676,31 +676,24 @@ les/ -creating-a-pull-request +searching-github /%22%0A @@ -722,33 +722,18 @@ n: %22 -Permissions and repo owne +User avata r%22,%0A @@ -...
a62dc02174666017a1730fe027529b6c134db2a1
Update Pointwise.js
CNN/Conv/Pointwise.js
CNN/Conv/Pointwise.js
export { ChannelPartInfo, FiltersBiasesPartInfo } from "./Pointwise/Pointwise_ChannelPartInfo.js"; export { FiltersArray_BiasesArray } from "./Pointwise/Pointwise_FiltersArray_BiasesArray.js"; export { PassThrough_FiltersArray_BiasesArray, PassThrough, AllZeros } from "./Pointwise/Pointwise_PassThrough.js"; export { Ba...
JavaScript
0
@@ -235,22 +235,229 @@ rray -, PassThrough, + %7D from %22./Pointwise/Pointwise_PassThrough.js%22;%0Aexport %7B PassThrough_FiltersArray_BiasesArray_Bag %7D from %22./Pointwise/Pointwise_PassThrough.js%22;%0Aexport %7B PassThrough %7D from %22./Pointwise/Pointwise_PassThrough.js%22;%0Aexport %7B All
7da9e11effbdd7ce1839ab07e3f4896f3901c3fe
Reduce number of calls to database
Client/app.service.js
Client/app.service.js
/* This file is part of Rogue Vision. Copyright (C) 2016 Daniel Reischl, Rene Rathmann, Peter Tan, Tobias Dorsch, Shefali Shukla, Vignesh Govindarajulu, Aleksander Penew, Abinav Puri Rogue Vision is free software: you can redistribute it and/or modify it under the terms of the GNU Affero Gen...
JavaScript
0.999577
@@ -1699,32 +1699,34 @@ carrier) %7B%0A%09 +// getFromDB();%0A%09
3f4b1ab678002fe620507393718ef114cfb0a280
Make an alias (in Course) for this.props.info
app/models/course.js
app/models/course.js
'use strict'; import * as _ from 'lodash' import * as React from 'react' import * as humanize from 'humanize-plus' import {DragDropMixin} from '../../node_modules/react-dnd/dist/ReactDND.min' import itemTypes from '../objects/itemTypes' var Course = React.createClass({ mixins: [DragDropMixin], configureDragDrop(r...
JavaScript
0.000005
@@ -1010,20 +1010,21 @@ %7B%0A%09%09let -titl +cours e = this @@ -1038,66 +1038,70 @@ info -.type === 'Topic' ? this.props.info.name : this.props.info +;%0A%09%09let title = course.type === 'Topic' ? course.name : course .tit @@ -1225,31 +1225,22 @@ ment'%7D, -this.props.info +course .dept)%0A%09 @@ -1291,31 +1...
7cd30e77785d0e3ff5af660968d58b2926005634
update notice model
app/models/course.js
app/models/course.js
/** * Created by Songzhou Yang on 12/1/2016. */ const mongoose = require('mongoose') const NoticeSchema = new mongoose.Schema({ sequenceNum: { type: Number, index: true }, title: String, publishTime: String, state: String, content: String }) const DocumentSchema = new mongoose.Schema({ sequen...
JavaScript
0
@@ -198,16 +198,37 @@ String,%0A + publisher: String,%0A publis @@ -269,32 +269,113 @@ content: String%0A +%7D, %7B%0A toObject: %7B%0A transform: (doc, ret) =%3E %7B%0A delete ret._id%0A %7D%0A %7D%0A %7D)%0A%0Aconst Docume @@ -1349,24 +1349,78 @@ %7D%0A %7D%0A%7D)%0A%0A +const Notice = mongoos...
a8e97bbc8c46561a09dfe486fb04acdb98720421
Add 'grunt debug' task
gruntfile.js
gruntfile.js
'use strict'; module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { serverViews: { files: ['app/views/**'], options: { livereload: true, } ...
JavaScript
0.999998
@@ -2345,39 +2345,487 @@ -concurrent: %7B%0A tasks +'node-inspector': %7B%0A custom: %7B%0A options: %7B%0A 'web-port': 1337,%0A 'web-host': 'localhost',%0A 'debug-port': 5858,%0A 'save-live-edit': tru...
6f3407beb609a6a876668b5ba71b4a3d0b8bfed1
Initialize buttons correctly
content/composeOverlay.js
content/composeOverlay.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/. */ (function() { var Cc = Components.classes; var Ci = Components.interfaces; var Cu = Components.utils; var MimeHea...
JavaScript
0.000002
@@ -2950,129 +2950,8 @@ );%0A%0A - if (!Services.prefs.getBoolPref(BASE + 'initialized')) %7B%0A Services.prefs.setBoolPref(BASE + 'initialized', true);%0A de @@ -2975,16 +2975,17 @@ ltSet ? +( defaultS @@ -2984,32 +2984,33 @@ defaultSet + ',' +) : '' ) + 'sprin @@ -3001,33 +3001,33 @@ : '' ) + 'sprin...
0de00e8023e6d523e643106f5b7e21793ce733a0
Support non-modified autocomplete results
content/composeOverlay.js
content/composeOverlay.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/. */ (function(global) { var { AutoCompleteResultCache } = Components.utils.import('resource://customizable-ldap-autoco...
JavaScript
0
@@ -1633,16 +1633,19 @@ var r +awR esult = @@ -1709,46 +1709,8 @@ g);%0A - if (!result)%0A return false;%0A%0A @@ -1785,19 +1785,74 @@ x);%0A -var +if (typeof rawResult.indexOfValue == 'function') %7B%0A let index = @@ -1849,24 +1849,27 @@ et index = r +awR esult.indexO @@ -1925,27 +192...
e687b441b5593305925515e6568adbe861dbed03
Change default position of NotificationView.
source/Vibrato/views/panels/NotificationView.js
source/Vibrato/views/panels/NotificationView.js
// -------------------------------------------------------------------------- \\ // File: NotificationView.js \\ // Module: PanelViews \\ // Requires: Core, Foundation, DOM, View ...
JavaScript
0
@@ -1136,16 +1136,17 @@ top: +- this.get @@ -1159,16 +1159,21 @@ eight' ) + - 10 %0A @@ -3466,18 +3466,22 @@ 'i. -close-imag +icon.icon-clos e' )
763439b3abf1c5b8e6befe76ad8571a7d3c53c49
Add puppy
hungrydog.js
hungrydog.js
document.onkeydown = move; var puppy = { x: 40, y: 200, alive: true, won: false, canMove: true, }; var alien = { x: 560, y: 80, alive: true, }; var alien2 = { x: 560, y: 200, alive: true, }; var alien3 = { x: 560, y: 320, alive: true, }; document.getElementById("up").onclick = function(...
JavaScript
0.000262
@@ -1,32 +1,4 @@ -document.onkeydown = move;%0A%0A var @@ -2576,12 +2576,39 @@ %0A %7D%0A %7D%0A%7D%0A +%0Adocument.onkeydown = move;
64840cf042aa06cc9797040fb2bb562c1d7b00c4
Update delete all content button labels
core/client/views/debug.js
core/client/views/debug.js
/*global window, document, Ghost, $, _, Backbone, JST */ (function () { "use strict"; Ghost.Views.Debug = Ghost.View.extend({ events: { "click .settings-menu a": "handleMenuClick", "click #startupload": "handleUploadClick", "click .js-delete": "handleDeleteClick" ...
JavaScript
0
@@ -5790,11 +5790,76 @@ t: %22 -Yes +Delete%22,%0A buttonClass: %22button-delete %22%0A @@ -6100,18 +6100,77 @@ text: %22 -No +Cancel%22,%0A buttonClass: %22button %22%0A
a3e9b84568b25d1c8990ffe52f07d3f87396933c
Add lodash import to RelationshipField, resolve #3241
fields/types/relationship/RelationshipField.js
fields/types/relationship/RelationshipField.js
import async from 'async'; import Field from '../Field'; import { listsByKey } from '../../../admin/client/utils/lists'; import React from 'react'; import Select from 'react-select'; import xhr from 'xhr'; import { Button, InputGroup } from 'elemental'; function compareValues (current, next) { const currentLength = c...
JavaScript
0
@@ -246,16 +246,40 @@ mental'; +%0Aimport _ from 'lodash'; %0A%0Afuncti
ac640632e5997b06151427d34adef64e53b63347
reset with value 0
filer/static/filer/js/addons/table-dropzone.js
filer/static/filer/js/addons/table-dropzone.js
// #DROPZONE# // This script implements the dropzone settings 'use strict'; /* globals Dropzone, Cl, django */ (function ($) { $(function () { var submitNum = 0; var maxSubmitNum = 0; var dropzoneInstances = []; var dropzoneBase = $('.js-filer-dropzone-base'); var dropzoneSe...
JavaScript
0.00022
@@ -6868,16 +6868,17 @@ %7B top: ' +0 ', botto @@ -6881,16 +6881,17 @@ ottom: ' +0 ', width @@ -6893,16 +6893,17 @@ width: ' +0 ', heigh @@ -6906,17 +6906,19 @@ eight: ' -' +0' %7D);%0A%0A
f0d02f93005c46ce0f0acc8165bd8ad0f1618bf6
Remove log statement.
app/renderer/main.js
app/renderer/main.js
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './components/app' import configureStore from './store/configureStore' import injectTapEventPlugin from 'react-tap-event-plugin' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import d...
JavaScript
0
@@ -1155,27 +1155,8 @@ me)%0A -console.log(theme)%0A them
53cd68bf8badf7a5a5007958e42f8ce63a999199
Fix typo in CSS import.
gsssm0.1.js
gsssm0.1.js
;(function () { "use strict"; var canvases = []; var cvs1overwrap = $("<div/>").addClass("SSM_gswrap"); var cvs1 = canvas({ resizable:false }); cvs1.container.prepend(cvs1overwrap); cvs1overwrap.append(cvs1.title_anchor).append(cvs1.wrapper).append(cvs1.caption_anchor); cvs1.overw...
JavaScript
0
@@ -1579,14 +1579,16 @@ els/ -master +gh-pages /gss
522b81dcf393f1eaf6ab5571c422fc4a97dd0532
add route to state object
stores/ApplicationStore.js
stores/ApplicationStore.js
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ var util = require('util'), EventEmitter = require('events').EventEmitter, Router = require('routr'), TimeStore = require('./TimeStore'), routes = require('../configs/rou...
JavaScript
0.000001
@@ -2166,16 +2166,43 @@ .pages,%0A + route: this.route,%0A
511184318bb4bddb92eced97f388a43aee6bae7c
Use for-of instead of .forEach() in newly added code.
lib/prepareImproQueryString.js
lib/prepareImproQueryString.js
const isSupportedEngine = { gm: true, sharp: true, pngcrush: true, pngquant: true, jpegtran: true, optipng: true, svgfilter: true, inkscape: true }; const resizeOptions = { ignoreAspectRatio: true, withoutEnlargement: true }; const queryStringEngineAndArgsRegex = new RegExp( `^(${Object.keys(isS...
JavaScript
0
@@ -895,41 +895,55 @@ -remaining.forEach((bit, index) =%3E +for (const %5Bindex, bit%5D of remaining.entries()) %7B%0A @@ -1529,18 +1529,16 @@ %0A %7D -); %0A%0A
50496704bcccb61915b669f5cb2536f138881ebd
Fix error logs
lib/techs/jsdoc-json-jsdoc3.js
lib/techs/jsdoc-json-jsdoc3.js
var vow = require('vow'), path = require('path'), cp = require('child_process'), enb = require('enb'), buildFlow = enb.buildFlow || require('enb/lib/build-flow'); module.exports = buildFlow.create() .name('jsdoc-json-jsdoc3') .target('target', '?.jsdoc.json') .useFileList(['js']) .build...
JavaScript
0.000004
@@ -1366,14 +1366,8 @@ err -.stack );%0A
a6aafb5675fa2c5466df62aa4b4f02603884a128
remove requirejs build from package.json
gruntfile.js
gruntfile.js
/* jshint node:true */ module.exports = function(grunt) { 'use strict'; // load all grunt tasks matching the ['grunt-*', '@*/grunt-*'] patterns require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ bower: { install: { }//just run 'grunt bower:install' an...
JavaScript
0.000002
@@ -1347,21 +1347,8 @@ wer' -, 'requirejs' %5D);%0A
3f06ae93641f3fad6de55f188b31d974c6616428
bump bower.json too
gruntfile.js
gruntfile.js
module.exports = function(grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); var pkg = grunt.file.readJSON('package.json'); var banner = grunt.initConfig({ pkg: pkg, banner: '/**'+ '* <%= pkg.description %>\n'+ '* @author <%= pkg.author %>\n'...
JavaScript
0
@@ -489,16 +489,30 @@ ge.json' +, 'bower.json' %5D,%0A %09%09%09%09
345ffd89f18b7ec9b7d7eba21b06f24318955c0f
Change gruntfile.js
gruntfile.js
gruntfile.js
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-shell-spawn'); grunt.loadNpmTasks('grunt-express-server'); grunt.loadNpmTasks('grunt-casper'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-simple-mocha'); grunt.loadNpmTasks('...
JavaScript
0.000002
@@ -3992,24 +3992,65 @@ 'default', %5B +'clean:build', 'copy:dev', 'browserify', 'shell:mongo @@ -4392,16 +4392,17 @@ :build', + 'copy:de @@ -4404,16 +4404,17 @@ py:dev', + 'browser
d84182b9fbd13d297c72312a4322c0c005e00b83
Remove linting from grunt build
gruntfile.js
gruntfile.js
'use strict'; module.exports = function(grunt) { // Unified Watch Object var watchFiles = { serverViews: ['app/views/**/*.*'], serverJS: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js'], clientViews: ['public/modules/**/views/**/*.html'], clientJS: ['public/js/*.js', 'public/modules/**/*.js'], ...
JavaScript
0
@@ -3388,24 +3388,16 @@ uild', %5B -'lint', 'loadCon