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
a2c1d2288033a53d70faad194075e88e044d6ec9
Enable onClick events for sideNav headerLink and superHeaderLink
packages/side-nav/src/presenters/SideNav.js
packages/side-nav/src/presenters/SideNav.js
import React, { Component } from "react"; import PropTypes from "prop-types"; import { css } from "emotion"; import { ThemeContext } from "@hig/theme-context"; import { Back24 } from "@hig/icons"; import Typography from "@hig/typography"; import TextLink from "@hig/text-link"; import IconButton from "@hig/icon-button";...
JavaScript
0
@@ -805,32 +805,112 @@ opTypes.string,%0A + /** Called when headerLink is clicked */%0A onClickHeader: PropTypes.func,%0A /** 0 or mor @@ -1354,16 +1354,106 @@ s.string +,%0A /** Called when superHeaderLink is clicked */%0A onClickSuperHeader: PropTypes.func %0A %7D;%0A%0A @@ -1577,16 +1577,25 @@ ...
74b1bcc050e76b1e2f18df2efbdf38685e410bb7
align remove page styles with other pages
src/pages/RemovePage.js
src/pages/RemovePage.js
import React, { useState } from 'react'; import { Helmet } from 'react-helmet'; import { useQuery, useMutation } from '@apollo/client'; import { loader } from 'graphql.macro'; import config from '../config'; import history from '../history'; import PageLayout from '../components/PageLayout'; import Notification from ...
JavaScript
0.000001
@@ -284,24 +284,198 @@ ageLayout';%0A +import Container from '../components/Container';%0Aimport Spacer from '../components/Spacer';%0Aimport Text from '../components/Text';%0Aimport Button from '../components/Button';%0A import Notif @@ -1841,21 +1841,136 @@ %0A %3C -div%3E%0A +Container maxWidth=%7B845%7D%3E%...
316d2c2c0762669ad927d7157b515a6b9133ef2f
Add more insertAtHead tests
tests/linkedlist-test.js
tests/linkedlist-test.js
var assert = require("assert"); var ll = require('../dstructs/linkedlist'); var LinkedList = ll.LinkedList; describe('LinkedList', function() { describe('empty LinkedList', function() { it('should return an empty array after initialized', function() { assert.equal(0, (new LinkedList()).toArray().length); ...
JavaScript
0
@@ -1945,32 +1945,99 @@ ist.search(2));%0A + list.insertAtHead(2);%0A assert.equal(0, list.search(2));%0A %7D);%0A %7D);%0A%7D)
b40bb2629baddfc7545998a1dad88243cbb7d8d0
add related model
lib/assets/javascripts/cartodb3/editor/layers/layer-content-views/infowindow/infowindow-fields-view.js
lib/assets/javascripts/cartodb3/editor/layers/layer-content-views/infowindow/infowindow-fields-view.js
var FieldView = require('./infowindow-field-view.js'); var template = require('./infowindow-fields.tpl'); var cdb = require('cartodb.js'); var Backbone = require('backbone'); var _ = require('underscore'); var $ = require('jquery'); require('jquery-ui/sortable'); module.exports = cdb.core.View.extend({ initialize: ...
JavaScript
0
@@ -1188,24 +1188,81 @@ 20), this); +%0A%0A this.add_related_model(this._layerInfowindowModel); %0A %7D,%0A%0A ren
22b67eb2a6ab04d8e4d65c7c9a291ec35ed13840
support target-dir for resource-file
cordova-lib/src/plugman/platforms/ubuntu.js
cordova-lib/src/plugman/platforms/ubuntu.js
/* * * Copyright 2013 Canonical Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
JavaScript
0.000001
@@ -3922,32 +3922,183 @@ l.attrib.src));%0A + if (source_el.attrib%5B'target-dir'%5D)%0A dest = path.join(source_el.attrib%5B'target-dir'%5D, path.basename(source_el.attrib.src));%0A comm @@ -4288,24 +4288,151 @@ ir, 'qml');%0A + if (source_el.attrib%5B'target-dir'%5D...
33a39f0d39beeeb4f22ef285c0ad36528357bb44
remove only
tests/mount-deep.test.js
tests/mount-deep.test.js
/* eslint-env jest */ import React from 'react'; import Enzyme, {mount} from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import mountToJson from '../src/mount'; import { BasicPure, BasicWithUndefined, BasicWithAList, ComponentWithAZeroChildren, ArrayRender, } from './fixtures/pure-function'; imp...
JavaScript
0.000001
@@ -3712,37 +3712,32 @@ pshot();%0A%7D);%0A%0Ait -.only ('excludes memo @@ -3912,13 +3912,8 @@ %0A%0Ait -.only ('ex
a0d5e48b2c6f3ce829112fb7c2caa3f0f86c5754
Move occasions method to bottom for easier readability
src/jquery.occasions.js
src/jquery.occasions.js
/* * Copyright (c) 2014 Stephen Peasley (http://www.speasley.com) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version 2.0.0 * Made in Canada */ ;(function($) { 'use strict'; $.fn.occasions = ...
JavaScript
0
@@ -298,382 +298,8 @@ ';%0A%0A - $.fn.occasions = function() %7B %0A%0A $element = this;%0A%0A var settings = $.extend(%7B%0A country: 'none',%0A internals: false,%0A path: '',%0A sect: 'none',%0A onSuccess: function() %7B%7D%0A %7D, arguments%5B0%5D %7C%7C %7B%7D);%0A%0A if (sett...
5051b70888861b48ee4e75e39aac319a9c9df43e
Fix bug of lazy image loading with tables
src/js/content/image.js
src/js/content/image.js
/** * * Content Style - Image (JS) * * @author Takuto Yanagida @ Space-Time Inc. * @version 2018-02-16 * */ document.addEventListener('DOMContentLoaded', function () { const TARGET_SELECTOR = '.stile'; initializeLazyImageLoading(); modifyFigureStyle(); // -----------------------------------------------...
JavaScript
0
@@ -100,12 +100,12 @@ 18-0 -2-16 +4-03 %0A *%0A @@ -777,16 +777,95 @@ ' img'); +%0A%09%09const imgsInTbl = document.querySelectorAll(TARGET_SELECTOR + ' table img'); %0A%0A%09%09cons @@ -979,16 +979,73 @@ mgs%5Bi%5D;%0A +%09%09%09if (%5B%5D.indexOf.call(imgsInTbl, img) !== -1) continue;%0A %09%09%09if (e @@ -1371...
6495f02fd719d181ab3342c78823fba469f7cb00
Fix JSHint error
src/js/views/listing.js
src/js/views/listing.js
(function (App) { 'use strict'; var Listing = Backbone.Marionette.ItemView.extend({ template: '#listing-tpl', tagName: 'article', className: 'listing', events : { 'click .info' : 'loadSubmission', 'click .upvote': 'upvote', 'click .downvote': 'downvote', }, ui : { voting : '.voting' }, ...
JavaScript
0.000007
@@ -578,16 +578,17 @@ + '%22/%3E') +; %0A%09%09%09//Ap
b751dff456e1a17daab8e9a9bc775e7ae581054f
increase logging for edge cases
lib/instrumentation/transaction.js
lib/instrumentation/transaction.js
'use strict' var uuid = require('node-uuid') var debug = require('debug')('opbeat') var Trace = require('./trace') module.exports = Transaction function Transaction (agent, name, type, result) { Object.defineProperty(this, 'name', { configurable: true, enumerable: true, get: function () { return ...
JavaScript
0.000001
@@ -1388,64 +1388,33 @@ ace%0A +%0A -if (!trace %7C%7C trace.transaction !== this) %7B%0A // Thi +// These two edge-case s sh @@ -1460,16 +1460,21 @@ oks into +%0A // Node.js @@ -1481,23 +1481,16 @@ doesn't -%0A // work as @@ -1532,16 +1532,21 @@ want to +%0A // gracefu @@ -1559,23 +1559,16 @@ ...
9cf1fe31598e76e58098c3598bf8ff0529f26e63
Remove redundant blit from AfterimagePass
examples/js/postprocessing/AfterimagePass.js
examples/js/postprocessing/AfterimagePass.js
/** * @author HypnosNova / https://www.threejs.org.cn/gallery/ */ THREE.AfterimagePass = function ( damp ) { THREE.Pass.call( this ); if ( THREE.AfterimageShader === undefined ) console.error( "THREE.AfterimagePass relies on THREE.AfterimageShader" ); this.shader = THREE.AfterimageShader; this.uniforms = T...
JavaScript
0
@@ -1113,46 +1113,8 @@ ial( - %7B%0A%09%09map: this.textureComp.texture%0A%09%7D );%0A%09 @@ -1114,30 +1114,28 @@ al();%0A%09this. -screen +copy FsQuad = new @@ -1572,91 +1572,63 @@ %0A%0A%09%09 -renderer.setRenderTarget( this.textureOld );%0A%09%09this.screenFsQuad.render( renderer ) +this.copyFsQuad.material.ma...
0d28baa1974afcecba0d45eb81e978b7db0c8ed1
fix doc comment missing
src/classes/Display.js
src/classes/Display.js
'use strict'; /** * Create the test DPI element * @function */ function createTestDPIElement(){ testDPIElement = $('<div/>') .attr('id','dpi-test') .css({ position: 'absolute', top: '-100%', left: '-100%', height: '1in', width: '1in', border: 'red 1px solid' }); $('body').prepend(t...
JavaScript
0
@@ -457,16 +457,26 @@ property + %7BElement%7D %0A * @pri
5bbd318518c908a061cf9b989d84151b6d7bbebf
Update message
src/client/app/safe.js
src/client/app/safe.js
/** * ブラウザの検証 */ // Detect an old browser if (!('fetch' in window)) { alert( 'お使いのブラウザが古いためMisskeyを動作させることができません。' + 'バージョンを最新のものに更新するか、別のブラウザをお試しください。' + '\n\n' + 'Your browser seems outdated. ' + 'To run Misskey, please update your browser to latest version or try other browsers.'); } // Detect Edge if...
JavaScript
0
@@ -85,16 +85,23 @@ %E3%81%8A%E4%BD%BF%E3%81%84%E3%81%AE%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6 +(%E3%81%BE%E3%81%9F%E3%81%AFOS) %E3%81%8C%E5%8F%A4%E3%81%84%E3%81%9F%E3%82%81Mis @@ -189,16 +189,29 @@ browser + (or your OS) seems o
c1155e89f28c4f4dee7626fb48e4edc646fc7aad
Clarify CornerPopup constructor id parameter
src/lib/corner-popup.js
src/lib/corner-popup.js
/* global $:false, _:false */ (function (window, undefined) { /* * A popup that displays a message in a window corner. * * Always-on-top, yet unobtrusive. * * May be shown and hidden. * * Parameters: * - id (string): The id of the corner popup. Used for determining order. (required) */ ...
JavaScript
0.000001
@@ -242,36 +242,8 @@ ng): - The id of the corner popup. Use @@ -264,14 +264,21 @@ ing +content order -. (re @@ -275,32 +275,56 @@ order (required + for consistent ordering )%0A */%0A functi
8662e22e5e1bb4420cd1debca41e57a8191fd763
Update main.js
examples/plain/app/components/scenes/main.js
examples/plain/app/components/scenes/main.js
import React, { PropTypes } from 'react'; import { View, StyleSheet } from 'react-native'; import { Navigator } from 'react-native-deprecated-custom-components'; import { List } from 'react-native-elements'; import ListItem from '../list_item'; const styles = StyleSheet.create({ container: { flexDirection: 'colu...
JavaScript
0.000001
@@ -9,23 +9,8 @@ eact -, %7B PropTypes %7D fro @@ -222,16 +222,52 @@ t_item'; +%0Aimport PropTypes from 'prop-types'; %0A%0Aconst
55e914d250ea5d3ff4a9bd3be574deaca2668e11
Add http request info req
DCBw7M351.js
DCBw7M351.js
const Discord = require("discord.js"); const client = new Discord.Client(); const http = require("http"); const auth = require("./auth.json"); const jsdom = require("jsdom"); const { JSDOM } = jsdom; const prefix = "§"; parseargs = (x, delimiter='"') => x.split(" ").reduce( (arr, val) => { let strEnd = val[val....
JavaScript
0
@@ -133,24 +133,58 @@ uth.json%22);%0A +const req = require(%22./req.json%22)%0A const jsdom
54a143bb3f61ebd6c46a0f440417e624139b8f89
Reset locate strategy for page objects before calling callback
lib/page-object/command-wrapper.js
lib/page-object/command-wrapper.js
module.exports = new (function() { /** * Given an element name, returns that element object * * @param {Object} parent The parent page or section * @param {string} elementName Name of element * @returns {Object} The element object */ function getElement(parent, elementName) { elementName = el...
JavaScript
0
@@ -2746,29 +2746,17 @@ firstArg -;%0A var +, desired @@ -2755,32 +2755,42 @@ desiredStrategy +, callback ;%0A var el @@ -3399,168 +3399,366 @@ g);%0A - +%0A -%7D%0A%0A var c = commandFn.apply(parent.client, args);%0A if (isElementCommand) %7B%0A setLocateStrategy(parent.cl...
af6e466ea8ca6edbbfb2ade8f74b619e9da877d1
Fix break on XHR
extension/content/firebug/net/netDebugger.js
extension/content/firebug/net/netDebugger.js
/* See license.txt for terms of usage */ define([ "firebug/lib/object", "firebug/firebug", "firebug/lib/domplate", "firebug/lib/locale", "firebug/lib/events", "firebug/lib/url", "firebug/lib/css", "firebug/lib/dom", "firebug/lib/array", "firebug/net/netUtils", ], function(Obj, F...
JavaScript
0.000001
@@ -2565,17 +2565,8 @@ uate -InSandbox (exp
0c4380b5fc3d45f75e85f5106ad349ea7a595685
Fix bundle outside of the bastion directory
src/commands/bundle.js
src/commands/bundle.js
import path from 'path' import webpack from 'webpack' import WebpackDevServer from 'webpack-dev-server' export default function build (entry, bundle, options) { const entries = { all: [ 'babel-polyfill', entry ], development: [ 'webpack-dev-server/client?http://localhost:8080/', '...
JavaScript
0
@@ -96,16 +96,239 @@ -server' +%0Aimport %7Bmap%7D from 'lodash'%0A%0Aconst localModules = path.resolve(path.join(__dirname, '../../node_modules'))%0A%0Afunction prefixModule (prefix) %7B%0A return (name) =%3E %7B%0A return path.join(localModules, %60$%7Bprefix%7D-$%7Bname%7D%60)%0A %7D%0A%7D %0A%0Aexport @@ -37...
73b59f0de22c6ab8c7317de712c80acf35665cd0
change stats to use reduce for consistency
src/compile/compile.js
src/compile/compile.js
'use strict'; var summary = module.exports = require('datalib/src/summary'); var globals = require('../globals'); module.exports = compile; var Encoding = require('../Encoding'), axis = compile.axis = require('./axis'), filter = compile.filter = require('./filter'), legend = compile.legend = require('./legend...
JavaScript
0
@@ -1232,24 +1232,16 @@ stats = - %7B%7D;%0A summary @@ -1270,15 +1270,14 @@ ')). -forEach +reduce (fun @@ -1282,16 +1282,19 @@ unction( +s, p) %7B%0A @@ -1296,20 +1296,16 @@ %7B%0A -stat s%5Bp.fiel @@ -1316,16 +1316,36 @@ p;%0A + return s;%0A %7D, %7B %7D);%0A %7D%0A
3af51dafdbf00ba74f1bdabeeed1946edc8ac970
Fix MediaSet (#55)
src/plugins/MediaSet.js
src/plugins/MediaSet.js
import Plugin from "./../Plugin"; import Util from "./../Util"; export default class MediaSet extends Plugin { static get plugin() { return { name: "MediaSet", description: "Media-capable set command", help: '/mset `trigger`', needs: { datab...
JavaScript
0
@@ -2335,32 +2335,113 @@ chat.id%5D = %7B%7D;%0A%0A + this.db.pendingRequests%5Bmessage.chat.id%5D%5Bmessage.message_id%5D = args%5B1%5D;%0A%0A reply(%7B%0A
46e1779577ff8b498d1a89de0c8a64b24d527250
Update DarkmoonDeckPromises.js
src/Parser/RestoDruid/Modules/Legendaries/DarkmoonDeckPromises.js
src/Parser/RestoDruid/Modules/Legendaries/DarkmoonDeckPromises.js
import React from 'react'; import ITEMS from 'common/ITEMS'; import { formatPercentage, formatNumber, formatThousands } from 'common/format'; import DarkmoonDeckPromisesCore from 'Parser/Core/Modules/Items/DarkmoonDeckPromises'; import HealingDone from 'Parser/Core/Modules/HealingDone'; class DarkmoonDeckPromises ex...
JavaScript
0
@@ -144,16 +144,20 @@ %0Aimport +Core Darkmoon @@ -168,20 +168,16 @@ Promises -Core from 'P @@ -319,16 +319,20 @@ extends +Core Darkmoon @@ -343,20 +343,16 @@ Promises -Core %7B%0A sta @@ -372,16 +372,62 @@ ies = %7B%0A + ...CoreDarkmoonDeckPromises.dependencies,%0A heal
8aada85c23142474eb40465408a6a33747469c90
add CollectionCursor.toArray()
lib/CarbonClient.js
lib/CarbonClient.js
var RestClient = require('carbon-client') var util = require('util') var fibrous = require('fibrous'); /**************************************************************************************************** * monkey patch the endpoint class to support sync get/post/put/delete/head/patch */ var Endpoint = RestClient....
JavaScript
0
@@ -1456,16 +1456,64 @@ %22next%22) +%0AsyncifyClassMethod(CollectionCursor, %22toArray%22) %0A%0A/*****
1a20a86d505df480804c136433bc7b8e543fd220
fix sync issues when panning
leaflet-mapbox-gl.js
leaflet-mapbox-gl.js
L.MapboxGL = L.Class.extend({ initialize: function (options) { L.setOptions(this, options); if (options.token) { mapboxgl.accessToken = options.token; } else { throw new Error('You should provide a Mapbox GL access token as a token option.') } }, on...
JavaScript
0.000001
@@ -1476,16 +1476,55 @@ om() - 1 +,%0A attributionControl: false %0A @@ -2113,24 +2113,27 @@ ();%0A%0A + // gl.setView( @@ -2187,16 +2187,271 @@ 1, 0);%0A + // calling setView directly causes sync issues because it uses requestAnimFrame%0A%0A var tr = gl.transform;%0A ...
61eb5a7ed1e91dfeffec235ad5b0f68ec6865724
Maintain the current context `this` context when giving the module its own scope
chaingun.js
chaingun.js
(function() { function chaingun(obj) { function _chained_(v) { function _chain_() { return curr; } var curr = v; if (typeof obj == 'function') curr = obj.apply(this, arguments); return extend(_chain_, obj, function(fn) { if (typeof fn != 'function') return; return functi...
JavaScript
0.001225
@@ -1044,12 +1044,21 @@ ngun;%0A%7D) -( +.call(this );%0A
71469591951bd0b5785fb16597fda6d008b50901
comment cleanup
src/components/Form.js
src/components/Form.js
// dependencies // import React from 'react'; import update from 'react-addons-update'; import uniqueId from 'lodash/uniqueId'; import classnames from 'classnames'; import Alert from './Alert'; import Button from './form/Button'; import CheckboxGroup from './form/CheckboxGroup'; import Dropdown from './form/Dropdown';...
JavaScript
0
@@ -480,42 +480,28 @@ ded -labelColumns, inputColumns to Form +configurable columns %0A//
a4da9737508b15d882224452ce2715c60200818c
make things always be on one line
src/components/List.js
src/components/List.js
import React, {Component} from 'react'; import styled from 'styled-components'; import icons from '../img/icons'; import {colors, sizes, zIndex} from '../constants'; const Wrapper = styled.div` width: 100%; height: 100%; background-color: ${colors.black}; color: ${colors.white}; z-index: ${zIndex.list}; f...
JavaScript
0.000022
@@ -927,16 +927,39 @@ tGrey%7D;%0A + white-space: nowrap;%0A %60;%0A%0Acons @@ -1124,16 +1124,39 @@ t: 700;%0A + white-space: nowrap;%0A %60;%0A%0Acons
29b56400b00add1ba2b3926f4bdd5b418001d4b5
fix the 'null' issue reported by @kiang ... this time for real !
src/components/Quiz.js
src/components/Quiz.js
import React from 'react' import { Redirect } from 'react-router' import { HashLink as Link } from 'react-router-hash-link' import { Progress } from 'semantic-ui-react' import PropTypes from 'prop-types' import * as options from '../settings/Option' import Option from './Option' const Quiz = ({rawQuizID, quizID, quiz...
JavaScript
0
@@ -1163,24 +1163,240 @@ 'input') %7B%0A + let placeholder = 'number...'%0A if (localStorage.getItem(quizID) && localStorage.getItem(quizID).length %3E 0 && localStorage.getItem(quizID) !== 'null') %7B%0A placeholder = localStorage.getItem(quizID)%0A %7D %0A userInpu @@ -1496,81 +1496,19 @@ er=%7B...
7fadc3b70bd3f0ee0f97c766449becb90b7890da
Fix transaction confirmations
src/js/modules/core/filters/confirmations/confirmations.filter.js
src/js/modules/core/filters/confirmations/confirmations.filter.js
(function () { "use strict"; angular.module("blocktrail.core") .filter("confirmations", confirmations); function confirmations(walletsManagerService) { var activeWallet = walletsManagerService.getActiveWallet(); var walletData = activeWallet.getReadOnlyWalletData(); return...
JavaScript
0.000733
@@ -163,24 +163,90 @@ rService) %7B%0A + return function(input) %7B%0A if (input) %7B%0A var @@ -301,16 +301,24 @@ llet();%0A + @@ -377,66 +377,8 @@ );%0A%0A - return function(input) %7B%0A if (input) %7B%0A
07f06e00c482da5538ebb4b0210c6c4a626f8f82
Remove local state from component
src/components/list.js
src/components/list.js
const React = require('react') import { connect } from 'react-redux' import {iteratedList} from "./util" import Link from "./link" import * as actions from "../actions" /* An array of expansions that can be "examined." Accepts an array and reveals items one-by-one. Arrays may be nested one-level deep; if the current...
JavaScript
0.000006
@@ -796,400 +796,8 @@ is)%0A - this.state = %7B%0A currentExpansion: this.props.currentExpansion,%0A %7D%0A %7D%0A componentWillMount() %7B%0A this.props.onSetExpansions(this.props.expansions, this.props.tag, this.props.currentExpansion)%0A %7D%0A componentWillReceiveProps(newProps) %7B%0A if (new...
39978aebce29c5a4923b3612d44159b7ff7b577f
Fix playing midi
src/components/main.js
src/components/main.js
import angular from 'angular'; import Firebase from 'firebase'; import toMatrix from '../utils/to-matrix'; const template = ` <div> <div style="position: absolute; left: 10px; top: 500px;"> <md-button class="md-fab" ng-click="main.togglePlay()"> <md-icon>play_arrow</md-icon> </md-button> <md-button...
JavaScript
0.000004
@@ -1836,27 +1836,29 @@ if ( +! col%5Bj%5D. -mask +empty ) %7B%0A @@ -2041,24 +2041,25 @@ if ( +! col0%5Bj%5D. mask) %7B%0A @@ -2042,36 +2042,37 @@ if (!col0%5Bj%5D. -mask +empty ) %7B%0A @@ -2262,32 +2262,33 @@ if ( +! col%5Bj%5D. -mask +empty && -! col0%5Bj%5D. mask @@ -2275,...
bd431af2dcdf95a8de73caf52e9757e92b5c9f01
Fix react warning.
src/components/page.js
src/components/page.js
import React from 'react'; export default class Page extends React.Component { render() { let {kataGroups} = this.props; return ( <body> <h1>ES6 Katas</h1> <p>Just learn a bit of ES6 daily, take one kata a day and fix it away.</p> <KataGroups groups={kataGroups} /> <foo...
JavaScript
0
@@ -690,16 +690,33 @@ =%7Bgroup%7D + key=%7Bgroup.name%7D /%3E)%7D%0A @@ -1003,16 +1003,32 @@ ...link%7D + key=%7Blink.text%7D /%3E)%7D%0A
2e9d3ff76f84df130e15fe886766158b3e35c105
Fix bug which prevented package.json opening post initialize
lib/actions/init.js
lib/actions/init.js
'use babel'; import yarnInit from '../yarn/init'; import activeProjectFolder from '../atom/active-project-folder'; import outputViewManager from '../atom/output-view-manager.js'; import path from 'path'; export default function() { const projectFolder = activeProjectFolder(); if (!projectFolder) { atom.notif...
JavaScript
0.000059
@@ -760,16 +760,37 @@ om.open( +%7B%0A pathsToOpen: path.joi @@ -821,16 +821,22 @@ e.json') +%0A %7D );%0A %7D);
ad68b879138167a29455041a844390fb885a58a4
Update announcement structure.
lib/announcement.js
lib/announcement.js
/** * Announcement module. * The main purpose of this module is to define a spec for services. */ var Announcement = module.exports = function(service) { this.name = service.name this.version = service.version this.baseUrl = service.baseUrl this.upgradeUrl = service.upgradeUrl } /** * Name of the service ...
JavaScript
0
@@ -215,80 +215,8 @@ ion%0A - this.baseUrl = service.baseUrl%0A this.upgradeUrl = service.upgradeUrl%0A %7D%0A%0A/ @@ -437,147 +437,42 @@ %0A * -Path of the service package%0A * @type %7BString%7D%0A * @required%0A */%0AAnnouncement.prototype.packagePath = undefined%0A%0A/**%0A * Name of the framework +The info o...
191074a3e897dc39797905f9499cdbfe9518a249
Make attributes private
lib/beehive/view.js
lib/beehive/view.js
(function(BeeHive) { function BeeHiveView(element) { this.element = element; var events = {}; function set(attr, value) { this[attr] = value; this.trigger(attr + ':change'); return this; } this.set = set; function get(attr) { return this[attr]; } this.get = get; ...
JavaScript
0
@@ -76,19 +76,16 @@ lement;%0A - %0A var @@ -97,16 +97,42 @@ s = %7B%7D;%0A + var attributes = %7B%7D;%0A%0A func @@ -161,19 +161,25 @@ %7B%0A -thi +attribute s%5Battr%5D @@ -270,20 +270,16 @@ = set;%0A - %0A fun @@ -303,19 +303,25 @@ return -thi +attribute s%5Battr%5D; @@ -343,1...
2be928eea1660c37f73ab7c98d37668e942424ba
Fix poll timers
lib/channel/poll.js
lib/channel/poll.js
var ChannelModule = require("./module"); var Poll = require("../poll").Poll; const TYPE_NEW_POLL = { title: "string", timeout: "number,optional", obscured: "boolean", opts: "array" }; const TYPE_VOTE = { option: "number" }; function PollModule(channel) { ChannelModule.apply(this, arguments); ...
JavaScript
0.000024
@@ -3402,19 +3402,8 @@ - account: %7B eff @@ -3417,18 +3417,16 @@ ank: 255 - %7D %0A
cf83a2093089f895295a3a85af081bf56065f260
Update file-set docs with more information
lib/cli/file-set.js
lib/cli/file-set.js
/** * @author Titus Wormer * @copyright 2015 Titus Wormer * @license MIT * @module mdast:cli:file-set * @fileoverview Collection of virtual files. */ 'use strict'; /* * Dependencies. */ var ware = require('ware'); var toVFile = require('to-vfile'); var filePipeline = require('./file-pipeline'); /** * Locke...
JavaScript
0
@@ -1284,54 +1284,578 @@ -self.contents = %5B%5D;%0A self.sourcePaths = %5B%5D; +/**%0A * Files in the set.%0A *%0A * @member %7BArray.%3CVFile%3E%7D contents%0A */%0A self.contents = %5B%5D;%0A%0A /**%0A * Number of files in the set.%0A *%0A * @member %7Bnumber%7D length%0A ...
f3b63234bfd37f4fbee9c30b73bf82d2a76414c5
Add unsuspend as a helper function in users.
lib/client/users.js
lib/client/users.js
//users.js: Client for the zendesk API. var util = require('util'), Client = require('./client').Client, defaultUser = require('./helpers').defaultUser; var Users = exports.Users = function (options) { this.jsonAPIName = 'users'; this.jsonAPIName2 = 'user'; Client.call(this, options); }; ...
JavaScript
0.000001
@@ -1308,32 +1308,154 @@ ue%7D %7D, cb);%0A%7D;%0A%0A +Users.prototype.unsuspend = function (id, cb) %7B%0A this.request('PUT', %5B'users'%5D, %7B%22user%22: %7B%22suspended%22: false%7D %7D, cb);%0A%7D;%0A %0AUsers.prototype
16abfcbe75dd8c7cc52fa9debf6bed548aa5b9ad
Revert "add scrollbar before scroller to not cover it"
lib/ace/scrollbar.js
lib/ace/scrollbar.js
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
0
@@ -2211,24 +2211,63 @@ is.inner);%0A%0A + parent.appendChild(this.element);%0A%0A // in OS @@ -2597,69 +2597,8 @@ ed %0A - // and insert it before other siblings to not cover them%0A @@ -2719,67 +2719,8 @@ %22;%0A%0A - parent.insertBefore(this.element, parent.firstChild);%0A%0A
9fb714770297af2e74bc217fb3fed71f4fcbb969
Fix prefix operator error on react native (#5)
lib/amazon-s3-uri.js
lib/amazon-s3-uri.js
'use strict' const url = require('url') const ENDPOINT_PATTERN = /^(.+\.)?s3[.-]([a-z0-9-]+)\./ const DEFAULT_REGION = 'us-east-1' // TODO: support versionId // TODO: encode uri before testing // TODO: support dualstack http://docs.aws.amazon.com/AmazonS3/latest/dev/dual-stack-endpoints.html /** * A URI wrapper th...
JavaScript
0
@@ -620,17 +620,16 @@ %7B%0A if ( -! new.targ @@ -630,16 +630,30 @@ w.target + === undefined ) %7B%0A
311b85b70ec126d70ce457eb21c7a492076a0b8c
Fix error with setting up collections
lib/amity-mongodb.js
lib/amity-mongodb.js
'use strict'; var async = require('async'), MongoClient = require('mongodb').MongoClient, feathersMongoDBs = require('feathers-mongo-databases'), feathersMongoColls = require('feathers-mongo-collections'), feathersMongo = require('feathers-mongodb'), mongoURI = require('mongo-uri'); /** * Amity-MongoDB connects...
JavaScript
0.000001
@@ -4433,33 +4433,34 @@ e Amity server.%0A -%09 + var setupDocumen @@ -4803,17 +4803,25 @@ tion(col -N +lection.n ame)%7D)%0A
22e3a5329fc718fc97321ad681f3726a5533caf9
Update copyright year
docs/src/app/Master.js
docs/src/app/Master.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import FlatButton from 'material-ui/FlatButton'; import spacing from 'material-ui/styles/spacing'; import getMuiTheme from 'material-ui/styles/getMuiTheme...
JavaScript
0.000001
@@ -7518,16 +7518,21 @@ %3E %C2%A9 2017 +-2018 %3Ca href
88d0728774210377c6aed122e6a2d0a138c069ae
make utils.js lint free
lib/config/utils.js
lib/config/utils.js
// convert structured configuration into a plain object // by calling the .write() methods of structured classes // properties ending in _ are considered private // NB may be less convoluted just to make these explicit module.exports.extractObj = function extractObj(obj, host) { var out = {}; for (var p in obj) { ...
JavaScript
0.000001
@@ -385,16 +385,17 @@ 0, 2) == += '__')%0A @@ -454,16 +454,17 @@ f val == += 'string @@ -512,16 +512,17 @@ f val == += 'object @@ -555,16 +555,17 @@ write == += 'functi @@ -717,16 +717,17 @@ %7D%0A %7D%0A +%0A for (v @@ -725,25 +725,25 @@ %0A for (var -p +h in host)%0A @@ -752,11 +752,37 @@ ...
ccd113c26d88d06f9b98adf6c54bba9b2702ce02
support node-webkit
lib/configurator.js
lib/configurator.js
const merge = require('deepmerge'); const defaults = require('./config'); const utils = require('./utils'); const loaderDefaults = defaults.loader; const isomorphicSpriteModule = require.resolve('../runtime/sprite.build'); const isomorphicSymbolModule = require.resolve('svg-baker-runtime/symbol'); const isTargetBrows...
JavaScript
0.000001
@@ -379,16 +379,17 @@ nderer' +%0A %7C%7C targe
5e071c3ca583d607bf37794b18f697bc0c882944
reset takeScreenshot flag after webdrivercss command finished
lib/asyncCallback.js
lib/asyncCallback.js
/** * run workflow again or execute callback function */ var workflow = require('./workflow.js'), endSession = require('./endSession.js'); module.exports = function(err,res) { var that = this; /** * if error occured don't do another shot (if multiple screen width are set) */ /*istanbul i...
JavaScript
0
@@ -1194,32 +1194,78 @@ function(err) %7B%0A + that.self.takeScreenshot = undefined;%0A that.cb(
7f80504f92ad0c43e6514d3c3070d9b56935dadb
Increase whitespace on Bios
src/containers/Team.js
src/containers/Team.js
import React from 'react' import { ThemeProvider, Section, Heading, Box, Container, mediaQueries } from '@hackclub/design-system' import { Head, Link } from 'react-static' import Nav from '../components/Nav' import Bio from '../components/Bio' import Footer from '../components/Footer' const Header = Box.ex...
JavaScript
0.99841
@@ -725,16 +725,36 @@ s%5B1%5D%7D %7B%0A + grid-gap: 2rem;%0A grid
b441e26baed85f790a9b7a34cfead08e8d16cedf
add nodify feature
lib/command/watch.js
lib/command/watch.js
'use strict'; var watch = module.exports = {}; // var node_fs = require('fs'); var node_path = require('path'); var stares = require('stares'); var cortex_json = require('read-cortex-json'); var pf = require('cortex-package-files'); var handler = require('cortex-command-errors'); var expand ...
JavaScript
0
@@ -6144,16 +6144,42 @@ harmony: + true,%0A nodify: true%0A
3a7daa1c038d80138e14ac805befdec535de6647
add boop emoji to boop command
lib/commands/boop.js
lib/commands/boop.js
const Clapp = require('../modules/clapp-discord'); const utilties = require('../utlities'); module.exports = new Clapp.Command( { name: "boop", desc: "Boop", fn: (argv, context) => { return { message: { type: 'message', message: utilties.getRandomResponse('boop'), ...
JavaScript
0.999303
@@ -191,16 +191,295 @@ t) =%3E %7B%0A + let message = utilties.getRandomResponse('boop');%0A%0A let guildEmoji = context.msg.guild.emojis;%0A let boopEmoji = guildEmoji.find(emoji =%3E emoji.name.toLowerCase() === 'boop');%0A%0A if(boopEmoji) %7B%0A message = boopEmoji.toString() + ' ' + mes...
b32ef4f769057281ff27d9c272974180b45f13ed
Fix two issues: No game and fuzzy searcher
lib/commands/info.js
lib/commands/info.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); console.log('Building info.js'); const _ = require('lodash'); exports.name = 'info'; exports.exec = async (msg, {send, guild, Discord, member, args}) =>{ let id = member.id; if(msg.mentions.users.first()) id = msg.mentions.users.fir...
JavaScript
0.999995
@@ -224,14 +224,90 @@ args -%7D) =%3E%7B +, content%7D) =%3E%7B%0A if(!guild) return send('You must use this command in a server'); %0A l @@ -455,16 +455,79 @@ members) + %7B%0A const q = content.substring(content.indexOf(args%5B1%5D)); %0A i @@ -584,24 +584,37 @@ scapeRegExp( +q),'i').test( m.user.us...
bbe65e46fc386db125ac2c6c9b4f13e8192325f0
Fix bug with [object] for stale backend
src/middleware/proxy.js
src/middleware/proxy.js
var utils = require('../utils'); var HtmlParserProxy = require('./htmlparser'); var HttpStatus = require('http-status-codes'); var ReliableGet = require('reliable-get'); var url = require('url'); module.exports = function backendProxyMiddleware(config, eventHandler) { var reliableGet = new ReliableGet(config), ...
JavaScript
0
@@ -2306,16 +2306,24 @@ acheData +.content );%0A
a184459311689311bed323e7c818d3a726f93c2d
Update logger
lib/config/logger.js
lib/config/logger.js
/*jshint esversion:6, node:true*/ 'use strict'; var winston = require('winston'); var config = require('winston/lib/winston/config'); var Message = require('../logger').Message; /* * Winston: * We use the Console and daily rotate file transports * and if provided, we also use Honeybadger. */ var transports = [ ...
JavaScript
0.000001
@@ -1075,16 +1075,17 @@ ns.meta) + %7B%0A
2d35c7e4db1d6c8807f0a9960bef42aa02858a9e
Update octane.js (#996)
lib/config/octane.js
lib/config/octane.js
'use strict'; module.exports = { rules: { 'deprecated-render-helper': true, 'link-rel-noopener': 'strict', 'link-href-attributes': true, 'no-abstract-roles': true, 'no-action': true, 'no-args-paths': true, 'no-attrs-in-components': true, 'no-curly-component-invocation': { requir...
JavaScript
0
@@ -614,32 +614,95 @@ ractive': true,%0A + 'no-invalid-link-text': true,%0A 'no-invalid-meta': true,%0A 'no-log': tr
3867a87c7c1b5def6cfe08a7d4c53583cea4e962
Update bound model errorful-set detection to be in line with the query flag->opts change
src/model/core/bound.js
src/model/core/bound.js
/** * model/core/bound.js */ var boundModel = models.bound = baseModel.extend({ /** * Constructor function to initialize each new model instance. * @return {[type]} */ initialize: function () { var self = this; /** * Queue the autorun of update. We want this to happen...
JavaScript
0
@@ -3456,20 +3456,20 @@ nction ( -flag +opts , prop) @@ -3812,24 +3812,24 @@ eof -flag !== 'number +opts === 'string ') %7B @@ -3856,12 +3856,12 @@ p = -flag +opts ;%0A
58e81b68077d576573baf344f626a8b5fa0c687c
Set load metadata by default in HTML5 videos
js/VISH.Renderer.js
js/VISH.Renderer.js
VISH.Renderer = (function(V,$,undefined){ var SLIDE_CONTAINER = null; /** * Function to initialize the renderer * Only gets the section element from the html page */ var init = function(){ SLIDE_CONTAINER = $('.slides'); } /** * slides.html only have a section element and in this ...
JavaScript
0
@@ -2857,12 +2857,16 @@ ad=' -none +metadata ' %22
7dec26d8b373f4ffbcef7392b724d781a63a9d9a
set toolbar icon title to productName + version
desktop/electron-app.js
desktop/electron-app.js
/* teamcity-tray-notifier main process */ const electron = require('electron'); const {app} = electron; const {BrowserWindow} = electron; const ipc = electron.ipcMain; const path = require('path'); const clipboard = require('electron').clipboard; let notificationsWin; let loginWin; let appIcon = null; let pkg = requi...
JavaScript
0.000001
@@ -1367,32 +1367,26 @@ Tip( -'teamcity-tray-notifier' +productNameVersion );%0A
b085c66bfeef195829790a7251e84828aa0f442a
Use our new method in remote-require
src/renderer-require.js
src/renderer-require.js
import path from 'path'; import {AsyncSubject, Observable, Subject} from 'rx'; import {createProxyForRemote, executeJavaScriptMethod, executeJavaScriptMethodObservable, RecursiveProxyHandler} from './execute-js-func'; import './custom-operators'; const d = require('debug-electron')('electron-remote:renderer-require'...
JavaScript
0
@@ -71,16 +71,65 @@ om 'rx'; +%0Aimport %7BfromRemoteWindow%7D from './remote-event'; %0A%0Aimport @@ -736,25 +736,24 @@ include.%0A * -%0A * @return %7B @@ -1146,59 +1146,51 @@ y = -new Promise((res,rej) =%3E %7B%0A bw.webContents.once( +Observable.merge(%0A fromRemoteWindow(bw, 'did @@ -1208,87 +1208,...
1f5b3db974ec1874f2f33aee520a7981fdd0eefc
make sure to only inject button on view page
src/content-script/content-script.js
src/content-script/content-script.js
function start () { if ($('#ytmp3').size() === 0) { var TEMPLATE = _.template( '<div id="ytmp3">' + '<button id="ytmp3-button" class="yt-uix-button yt-uix-button-size-default yt-uix-button-default">Download MP3</button>' + '</div>' ); var container = $(TEMPLATE({})); var button = co...
JavaScript
0
@@ -15,24 +15,69 @@ () %7B%0A if ( +/%5C?v=.+/.test(window.location.toString()) && $('#ytmp3').
8ddf10fc04bb83676504cd2ed4b35386d8ea4648
Fix taint testing
src/renderers/Canvas.js
src/renderers/Canvas.js
_html2canvas.Renderer.Canvas = function(options) { options = options || {}; var doc = document, safeImages = [], testCanvas = document.createElement("canvas"), testctx = testCanvas.getContext("2d"), canvas = options.canvas || doc.createElement('canvas'); function createShape(ctx, args) { ctx.begin...
JavaScript
0.000004
@@ -1764,16 +1764,17 @@ if ( +! options.
0c712189d21b0e7351c2caba0dc4d9adff837b99
Update bootstrap-386.js
js/bootstrap-386.js
js/bootstrap-386.js
_386 = { onePass: true, speedFactor: 1.25 }; self._386 = self._386 || {}; $(function(){ var character = { height: 20, width: 12.4 }; function scrollLock() { var last = 0; $(window).bind('scroll', function(e) { var func, off = $(window).scrollTop(); console.log(off, last, off < last ? "up" : "...
JavaScript
0.000001
@@ -1,12 +1,14 @@ +// _386 = %7B one
6acc8f74cb5351c3fbf31fd9903881132ff0a613
Clarify some comments
lib/editor-linter.js
lib/editor-linter.js
'use babel' import {TextEditor, Emitter, CompositeDisposable} from 'atom' export default class EditorLinter { constructor(editor) { if (!(editor instanceof TextEditor)) { throw new Error('Given editor is not really an editor') } this.editor = editor this.emitter = new Emitter() this.messag...
JavaScript
0.000074
@@ -1255,16 +1255,35 @@ dChange +instead of observe here 'ca @@ -2475,16 +2475,23 @@ tely on +Editor creation @@ -3181,16 +3181,23 @@ emove a +gutter containe
9fda9070c1ba1ddc86d40b3fe5ab86d097262f8a
remove old tests
js/client/app/components/volunteer/volunteer.spec.js
js/client/app/components/volunteer/volunteer.spec.js
import VolunteerModule from './volunteer' import VolunteerController from './volunteer.controller'; import VolunteerComponent from './volunteer.component'; import VolunteerTemplate from './volunteer.html'; import _ from 'lodash'; describe('Volunteer', () => { let $rootScope, $state, makeController; beforeEach(win...
JavaScript
0.000743
@@ -730,2117 +730,8 @@ %7B%0A%0A - // controller specs%0A it('has a volunteerId property', () =%3E %7B %0A let controller = makeController(0);%0A expect(controller.volunteerId).to.equal(0);%0A%0A controller = makeController(1);%0A expect(controller.volunteerId).to.equal(1);%0A%0A contro...
4c3c9d337d43380ddf52a62861aef3243ff31525
Add log2
lib/exprs/prelude.js
lib/exprs/prelude.js
/* * ExpStats lib/exprs/prelude.js * copyright (c) 2015 Susisu */ "use strict"; function endModule() { module.exports = Object.freeze(prelude); } var exprs = require("./exprs.js"); var Exception = exprs.Exception; var prelude = Object.create(null); function unaryOp(func) { return function op(x) { ...
JavaScript
0.000037
@@ -2851,32 +2851,112 @@ ath.log(x); %7D);%0A +prelude%5B%22log2%22%5D = unaryOp(function (x) %7B return Math.log(x) / Math.log(2); %7D);%0A prelude%5B%22log10%22%5D
360d0ec42e9fbf0b73829dde9bcaf3cb10e192a6
Optimize for compilers/compressors
plugins/buttons/src/jquery.jcarousel.buttons.js
plugins/buttons/src/jquery.jcarousel.buttons.js
/*! * jCarousel Buttons Plugin v@VERSION * http://sorgalla.com/jcarousel/ * * Copyright 2011, Jan Sorgalla * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * or GPL Version 2 (http://www.opensource.org/licenses/gpl-2.0.php) licenses. * * Date: @DATE */ (function($) { var ...
JavaScript
0.000004
@@ -329,16 +329,112 @@ carousel +,%0A btnEnabled = 'jcarouselbuttonenabled',%0A btnDisabled = 'jcarouselbuttondisabled' ;%0A%0A $ @@ -727,17 +727,16 @@ = this, - %0A @@ -1288,32 +1288,18 @@ ata( -'jcarouselbuttone +btnE nabled -' ) == @@ -1733,32 +1733,18 @@ ata( -'jcarouselbuttone +bt...
d77ae7459fc673e85ba53395690f806e9df33fae
add es6-shim to browsersupport too
plugins/c9.ide.browsersupport/browsersupport.js
plugins/c9.ide.browsersupport/browsersupport.js
define(function(require, exports, module) { "use strict"; main.consumes = ["Plugin"]; main.provides = ["browsersupport"]; return main; function main(options, imports, register) { var Plugin = imports.Plugin; require("ace/lib/es5-shim"); var useragent = require(...
JavaScript
0
@@ -277,24 +277,61 @@ es5-shim%22);%0A + require(%22ace/lib/es6-shim%22);%0A var
7111dd9043b719e61a933cd8087e61d0b3febd06
add spaces when bulding tag meta
lib/format-header.js
lib/format-header.js
module.exports = function formatHeader(page, opts) { var url = pageURL(page.output) var title = "<a href='" + url + "'><h1>" + page.content.title + "</h1></a>" var metaList = buildMeta(page).join(" ") var meta = "<ul>" + metaList + "</ul>" var header = "<div class='post-header'>" + title + meta + "</div...
JavaScript
0.000004
@@ -803,16 +803,27 @@ ent.tags +.join(%22, %22) +%22%3C/li%3E
e907f26bd0048b28d54aa6e9cace1186f1a406f1
Add extra info to ls -l
lib/fs/usr/bin/ls.js
lib/fs/usr/bin/ls.js
var FS = require('zsh.js/lib/fs'); var File = require('zsh.js/lib/file'); return function (args, stdin, stdout, stderr, next) { var outputs = []; if (!args.arguments.length) { args.arguments.push('.'); } args.arguments.forEach(function (arg) { var dir = File.open(arg); if (!dir.exists()) { ...
JavaScript
0
@@ -702,24 +702,336 @@ );%0A %7D%0A%0A + if (args.options.l) %7B%0A files = files.map(function (name) %7B%0A var file = dir.open(name);%0A var type = file.isDir() ? 'd' : '-';%0A var perms = type + 'rw-r--r--';%0A%0A return perms + ' guest guest ' + file.length() + ...
a2148ebe368f53f1994f71e82452539529bdfe16
remove console.logs to Auth.js
src/routes/auth/Auth.js
src/routes/auth/Auth.js
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
JavaScript
0.000001
@@ -678,78 +678,8 @@ ) %7B%0A - console.log('props!', this.props);%0A Session.setUser('charrr');%0A @@ -793,65 +793,8 @@ et); -%0A%0A console.log('Session!!', Session.getAccessToken()); %0A
6be4d828edf4c3b427ca7e504a5a610aebc95dcc
remove 'should' dependency completely
lib/keys/keypair.js
lib/keys/keypair.js
/** * Created by bmf on 11/2/13. */ /* jslint node: true */ 'use strict'; var assert = require('assert'); var CryptoBaseBuffer = require('../crypto-base-buffer'); module.exports = function KeyPair() { var self = this; /** secret key */ self.secretKey = new CryptoBaseBuffer(); self.secretKeySize = ...
JavaScript
0.000055
@@ -3158,32 +3158,34 @@ ding) %7B%0A +// keys.should.have @@ -3201,32 +3201,34 @@ ject');%0A +// keys.should.have @@ -4710,16 +4710,18 @@ +// keys.sho
4693a13a03936d92be16652500c82f50833775d5
Clear all global Relay state along with expectations
lib/relay-network-layer-manager.js
lib/relay-network-layer-manager.js
import util from 'util'; import {Environment, Network, RecordSource, Store} from 'relay-runtime'; import moment from 'moment'; const LODASH_ISEQUAL = 'lodash.isequal'; let isEqual = null; const relayEnvironmentPerURL = new Map(); const tokenPerURL = new Map(); const fetchPerURL = new Map(); const responsesByQuery = ...
JavaScript
0
@@ -1450,16 +1450,124 @@ lear();%0A + relayEnvironmentPerURL.clear();%0A tokenPerURL.clear();%0A fetchPerURL.clear();%0A responsesByQuery.clear();%0A %7D%0A%0Afunct
d59de7b5bec9b57a21b0f297ddeba8d4e2949da1
Test if member exists (#224)
src/define/class/attributes/check.js
src/define/class/attributes/check.js
/** * @file Attributes management in a class */ /*#ifndef(UMD)*/ "use strict"; /*global _gpfArrayForEach*/ // Almost like [].forEach (undefined are also enumerated) /*global _gpfAttribute*/ // Shortcut for gpf.attributes.Attribute /*global _GpfClassDefinition*/ // Class definition /*global _gpfErrorDeclare*/ // Decla...
JavaScript
0.000001
@@ -395,16 +395,83 @@ feature + 'on top' of normal class definition to be able to remove it easily %0A%0A_gpfEr @@ -1662,24 +1662,22 @@ g%7D name -property +Member name%0A @@ -1997,32 +1997,457 @@ %7D%0A %7D,%0A%0A + /**%0A * Given the member name, tells if it exists%0A *%0A * @param %...
da184f002417a7c911678831d972a5a668eb6b8d
Remove unnecessary pre-zip task.
gulp-tasks/zip.js
gulp-tasks/zip.js
/** * External dependencies */ import gulp from 'gulp'; import zip from 'gulp-zip'; import del from 'del'; import fs from 'fs'; import path from 'path'; import getRepoInfo from 'git-repo-info'; function getPluginVersion() { return fs.readFileSync( path.resolve( __dirname, '../google-site-kit.php' ), 'utf8' ) .mat...
JavaScript
0.000011
@@ -798,178 +798,8 @@ %0A%7D%0A%0A -%0Agulp.task( 'pre-zip', () =%3E %7B%0A%09del.sync( %5B './release/google-site-kit/**' %5D );%0A%0A%09return gulp.src( 'release/**' )%0A%09%09.pipe( gulp.dest( 'release/google-site-kit/' ) );%0A%7D ); %0A%0Agu
08cbe66f0fa27f2989cb1e6e41404a1e32663d20
Update controller.js
generators/app/templates/model/controller.js
generators/app/templates/model/controller.js
const Controller = require('../../lib/controller'); const <%= model.camelName %>Model = require('./<%= model.slugName %>-facade'); class <%= model.pascalName %>Controller extends Controller {} module.exports = new <%= model.pascalName %>Controller(<%= model.camelName %>Model);
JavaScript
0.000001
@@ -73,21 +73,22 @@ lName %25%3E -Mo +Faca de -l = requ @@ -272,12 +272,13 @@ e %25%3E -Mo +Faca de -l );%0A
7264bad40c2558c95883225193823e75b5280181
Replace deprecated node type simpleSelector with selector
lib/rules/placeholder-in-extend.js
lib/rules/placeholder-in-extend.js
'use strict'; var helpers = require('../helpers'); module.exports = { 'name': 'placeholder-in-extend', 'defaults': {}, 'detect': function (ast, parser) { var result = []; ast.traverseByType('atkeyword', function (keyword, i, parent) { keyword.forEach(function (item) { if (item.content ===...
JavaScript
0
@@ -358,14 +358,8 @@ h('s -impleS elec
0ca29231468b9d670858b14a638e1fa32d1e7bda
Update mano-legacy package
node_modules/mano-legacy/reset-controls.js
node_modules/mano-legacy/reset-controls.js
'use strict'; var dispatch = require('./dispatch-event') , forEach = Array.prototype.forEach , resetInput, resetValue, resetSelect, resetOption; resetOption = function (el) { var nu, old = el.selected; if (el.hasAttribute) nu = el.hasAttribute('selected'); else nu = Boolean(el.getAttribute('select')); if (o...
JavaScript
0
@@ -118,16 +118,30 @@ etValue, + resetContent, resetSe @@ -159,16 +159,16 @@ Option;%0A - %0AresetOp @@ -531,24 +531,181 @@ ange');%0A%7D;%0A%0A +resetContent = function (el) %7B%0A%09var nu = el.firstChild ? el.firstChild.data : '';%0A%09if (el.value === nu) return;%0A%09el.value = nu;%0A%09dispatch(el, 'change'...
17d77aa39ff76bbc1360a9191c68c7e4f7a4052e
Update logging for slack API
dist/api/slack/index.js
dist/api/slack/index.js
const express = require('express'); const SlackBot = require('slackbots'); const Logger = require('../../lib/logger'); const NODE_ENV = process.env.NODE_ENV || 'development'; let log = new Logger(NODE_ENV === 'production' ? 4 : (NODE_ENV === 'development' ? 1 : 2)); let router = express.Router(); /** * @api {get} /...
JavaScript
0
@@ -1992,20 +1992,28 @@ ug(%60 -Returning $%7B +Found $%7BObject.keys( slac @@ -2022,16 +2022,17 @@ channels +) .length%7D @@ -2044,16 +2044,28 @@ nels, $%7B +Object.keys( slack.gr @@ -2068,16 +2068,17 @@ k.groups +) .length%7D @@ -2092,16 +2092,28 @@ , and $%7B +Object.keys( slack.us @@ -2115,16 +2115,17 @@ ...
328136743fc1aaa3c93c0bb44ffd47061cbc5221
Update file.js
lib/file.js
lib/file.js
'use strict'; var path = require('path'); var fs = require('fs'); // File is responsible to gather all information related to a given parsed file, as: // - its dir and name // - its content // - the search paths where referecned resource will be looked at // - the list of parsed blocks // // // Returns an array o...
JavaScript
0
@@ -2496,16 +2496,37 @@ %5E%5C%5D%5D+%5C%5D%3E +%3C!--%3E%7C%3C!--%5C%5B%5B%5E%5C%5D%5D+%5C%5D%3E /);%0A
9018a26630c33314dd976f697c4cafc734093a09
remove debug log from server
lib/hariko/server.js
lib/hariko/server.js
var _ = require('lodash'), express = require('express'), http = require('http'), bodyParser = require('body-parser'), colors = require('colors'); var selfAssertive = require('./server-middleware/self-assertive'), cors = require('./server-middleware/cors'...
JavaScript
0.000001
@@ -2050,45 +2050,8 @@ ) %7B%0A - console.log(this._server.close);%0A
872d7987ae136f6c886a8b7b414340c4d1b6eb63
remove class
html/index.js
html/index.js
var React = require('react'); var ReactDOM = require('react-dom'); var $ = require('jquery'); var _ = require('lodash'); var querystring = require('querystring'); var Alert = require('react-bootstrap').Alert; var Grid = require('react-bootstrap').Grid; var Row = require('react-bootstrap').Row; var Col = require('react-...
JavaScript
0.00035
@@ -855,30 +855,8 @@ Grid - bsClass=%22fill-height%22 flu
fb1c405ef61cf4c3cc64cbccda81fe483f1f29cb
fix filter node able to mutate to non existent filter type
src/nodes/filterNode.js
src/nodes/filterNode.js
var Utils = require('asNEAT/utils')['default'], Node = require('asNEAT/nodes/node')['default'], name = "FilterNode", freqMin = 0, freqMax = 1500, qMin = 0.0001, qMax = 20, gainMin = -5, gainMax = 5; var FilterNode = function(parameters) { Node.call(this, parameters); }; FilterNode.p...
JavaScript
0
@@ -611,17 +611,17 @@ 0, max: -8 +7 %7D,%0A
60bbf94aa83c0a218259e04647fb4e594408ff9a
Improve jsdoc for else/orElse, use then directly
lib/flow.js
lib/flow.js
/** @license MIT License (c) copyright 2010-2013 original author or authors */ /** * Licensed under the MIT License at: * http://www.opensource.org/licenses/mit-license.php * * @author Brian Cavalier * @author John Hann */ (function(define) { 'use strict'; define(function() { return function flow(Promise) { ...
JavaScript
0
@@ -1750,24 +1750,86 @@ alue -%0A%09%09 * @param %7B*%7D +. If defaultValue%0A%09%09 * is a promise, it's fulfillment value will be used. If def @@ -1841,69 +1841,165 @@ alue + is %0A%09%09 * -@returns %7BPromise%7D a promise that fulfills in all ca +a promise that rejects, the returned promise will reject with...
b77c0878859341d7717b2f4d8ba4393004069daf
Update stock.js
html/stock.js
html/stock.js
String.prototype.format = function () { var s = this, i = arguments.length; while (i--) { s = s.replace(new RegExp('\\{' + i + '\\}', 'gm'), arguments[i]); } return s; }; $.fn.fade = function () { var src = arguments[0]; this.fadeOut('slow', function () { $(this).attr("src", src).fadeIn('slow')...
JavaScript
0.000001
@@ -1481,19 +1481,27 @@ ee_month -: %7B +_with_sma:%EF%BD%9B %0D%0A%09%09acti @@ -1503,32 +1503,344 @@ %09active: true,%0D%0A +%09%09url: %22http://charts.aastocks.com/servlet/Charts?fontsize=11&15MinDelay=T&lang=1&titlestyle=1&vol=1&Indicator=1&indpara1=10&indpara2=20&indpara3=50&indpara4=100&indpara5=150&scheme=%7...
438233818e88d9383c6c4e17c4cbd6bdc6b23eb7
fix pulse navigation
src/redactions/pulse.js
src/redactions/pulse.js
/* global config */ import 'whatwg-fetch'; import find from 'lodash/find'; import compact from 'lodash/compact'; import flatten from 'lodash/flatten'; // We should merge the layerSpecPulse with the response of the layers import layerSpecPulse from 'utils/layers/layerSpecPulse.json'; /** * CONSTANTS */ const GET_LAY...
JavaScript
0.000001
@@ -1636,134 +1636,8 @@ ) %7B%0A -%0A const hasRealtime = vocabulary.attributes.tags.includes('real_time');%0A debugger;%0A if (hasRealtime) %7B%0A @@ -1693,26 +1693,24 @@ layer) =%3E %7B%0A - if @@ -1774,26 +1774,24 @@ geConfig) %7B%0A - @@ -1845,28 +1845,15...
c4b34b08ac84d44f4c8c3181142810a98a38ba34
Fix ODR#742: Add switchDevices/postInstallCommands in the options list of install esx task
lib/task-data/tasks/install-esx.js
lib/task-data/tasks/install-esx.js
// Copyright 2015, EMC, Inc. 'use strict'; module.exports = { friendlyName: 'Install Esx', injectableName: 'Task.Os.Install.Esx', implementsTask: 'Task.Base.Os.Install', options: { osType: 'esx', //readonly option, should avoid change it profile: 'install-esx.ipxe', installScri...
JavaScript
0
@@ -1044,16 +1044,770 @@ sk: null +,%0A%0A // If specified, this contains an array of objects with switchName and uplinks (optional)%0A // parameters. If 'uplinks' is omitted, the vswitch will be created with no uplinks.%0A // - switchName (required): The name of vswitch%0A // - uplinks ...
c08a1fc1bf2f82de5f89e65bf3a278e5ed92a01b
fix kget composer info
lyric_engine_js/modules/kget.js
lyric_engine_js/modules/kget.js
const util = require('util'); const iconv = require('iconv-lite'); const he = require('he'); const rp = require('request-promise'); const striptags = require('striptags'); const LyricBase = require('../include/lyric_base'); const keyword = 'kget'; class Lyric extends LyricBase { async find_lyric(url, html) { ...
JavaScript
0
@@ -1262,24 +1262,33 @@ lyricist': ' +%3E%E4%BD%9C%E8%A9%9E%3C/th%3E%3C td%3E(%5B%5E%3C%5D*)%3Cb @@ -1327,16 +1327,25 @@ oser': ' +%3E%E4%BD%9C%E6%9B%B2%3C/th%3E%3C td%3E(%5B%5E%3C%5D
0ce6df417b6016687add2b7820b8786cf414a6be
rename `.hyperterm_modules` to `.hyperterm_plugins`
plugins.js
plugins.js
const { dialog } = require('electron'); const { homedir } = require('os'); const { resolve, basename } = require('path'); const { writeFileSync } = require('fs'); const config = require('./config'); const { sync: mkdirpSync } = require('mkdirp'); const { exec } = require('child_process'); const Config = require('electr...
JavaScript
0.000001
@@ -495,22 +495,22 @@ perterm_ -module +plugin s');%0Acon @@ -555,22 +555,22 @@ perterm_ -module +plugin s', 'loc @@ -1544,22 +1544,22 @@ perterm_ -module +plugin s/npm-de
0ede51c40290113d7fe3323f037f17bd8588b579
Fix JS var
src/view/frontend/web/js/view/payment/method-renderer/hipay-cc.js
src/view/frontend/web/js/view/payment/method-renderer/hipay-cc.js
/* * HiPay fullservice SDK * * NOTICE OF LICENSE * * This source file is subject to the MIT License * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/mit-license.php * * @copyright Copyright (c) 201...
JavaScript
0.000345
@@ -4607,16 +4607,21 @@ entials( +this. apiUsern @@ -4631,16 +4631,21 @@ TokenJs, +this. apiPassw
6694efed867dd79b7b9878fe0bf2139a7d968a17
FIx translation preview for detected language
main/plugins/translate/index.js
main/plugins/translate/index.js
import React from 'react'; import icon from './icon.png'; import translate from './translate'; import detectLanguage from './detectLanguage'; import toLanguageCode from './toLanguageCode'; import Preview from './Preview'; import { id, order, REGEXP } from './constants.js'; const translatePlugin = (term, callback) => {...
JavaScript
0
@@ -788,19 +788,16 @@ lit('-') -%5B0%5D ;%0A
4f3df7e1f2e8af99a5b33510f0284904de37e657
handle custom reducers
src/reducers/reducer.js
src/reducers/reducer.js
import immutable from 'seamless-immutable'; import reduce from 'lodash/reduce'; import container from '../container'; import { PREFIX } from '../constants/actionTypes'; const INITIAL_STATE = {}; const handleCustomReducers = (state, action) => { if (!container.hasDefinition('reducers')) { return state; } c...
JavaScript
0
@@ -374,16 +374,31 @@ ducers') +.getArguments() ;%0A%0A ret
50c518cebfb0c667da9273a444c0f015169f3cfb
add user endpoint
api/user.js
api/user.js
const express = require('express'); const { GraphQLClient } = require('graphql-request'); const jwt = require('jwt-decode'); const router = express.Router(); const endpoint = 'https://api.graph.cool/simple/v1/ffconf'; const client = new GraphQLClient(endpoint, { headers: {} }); module.exports = router; router.get('...
JavaScript
0.000029
@@ -345,34 +345,481 @@ %7B%0A -res.status(400).send(false +if (!req.cookies.token) %7B%0A return res.status(400).json(%7B error: 'invalid token' %7D);%0A %7D%0A%0A const %7B userId %7D = jwt(req.cookie.token);%0A%0A const client = new GraphQLClient(endpoint, %7B%0A headers: %7B%0A authorization: %60Bea...
bc020d2c069c9ba564d47f253e8cbff3c2c32dcf
Fix fatal error when loading a remote doc
lib/util/remote-document-loader.js
lib/util/remote-document-loader.js
'use strict' // logging const winston = require('winston') // parsing utils const CSON = require('cson') const YAML = require('js-yaml') // HTTP utils const request = require('request') const filesize = require('filesize') // constants const MAX_REMOTE_FILE_SIZE = process.env.MAX_REMOTE_FILE_SIZE || 32 * 1024 // 32...
JavaScript
0.000006
@@ -527,35 +527,22 @@ -let p = new Promise()%0A p +return Promise .res @@ -552,29 +552,16 @@ e(data)%0A - return p%0A %7D,%0A c @@ -573,39 +573,38 @@ (data) =%3E %7B%0A -let p = +return new Promise()%0A @@ -592,34 +592,57 @@ urn new Promise( -)%0A +(resolve, reject) =%3E %7B%0A let par...
4055a4d7b913f861fad647f2c1995408c57eb375
Add arrowCreator attribute to SourceAnchor.arrowCreator
src/wirecloud/static/js/wirecloud/ui/WiringEditor/SourceAnchor.js
src/wirecloud/static/js/wirecloud/ui/WiringEditor/SourceAnchor.js
/* * (C) Copyright 2012 Universidad Politécnica de Madrid * * This file is part of Wirecloud Platform. * * Wirecloud Platform is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, e...
JavaScript
0
@@ -1324,16 +1324,58 @@ eator);%0A + this.arrowCreator = arrowCreator;%0A %7D;%0A
01d34e1f901bbe9f72b5b3ddd213db97cec247a4
add note of caveat of using Prompt component
lib/components/user/monitored-trip/trip-basics-pane.js
lib/components/user/monitored-trip/trip-basics-pane.js
import { Field } from 'formik' import FormikErrorFocus from 'formik-error-focus' import React, { Component } from 'react' import { ControlLabel, FormControl, FormGroup, Glyphicon, HelpBlock, ProgressBar } from 'react-bootstrap' import { connect } from 'react-redux' import { Prompt } from 'react-router' impo...
JavaScript
0
@@ -3794,32 +3794,197 @@ (%0A %3Cdiv%3E%0A + %7B/* TODO: This component does not block navigation on reload or using the back button.%0A This will have to be done at a higher level. See #376 */%7D%0A %3CPromp
da82ce81c715178e7c66ced9e6ba710f1505aee8
use delete instead of setting node to null on pop
lib/heap.js
lib/heap.js
var maxHeap = function() { // properties this._tree = new Array(); this._size = 0; } /** * Core Heap functions. */ /** * @return the root node, or the highest valued node. */ maxHeap.prototype.peek = function() { return this._tree[1]; }; /** * @return the root node, or highes...
JavaScript
0
@@ -523,16 +523,53 @@ peek();%0D +%0A var last_node = this._size;%0D %0A%0D%0A @@ -598,25 +598,24 @@ s._tree%5B -this._siz +last_nod e%5D;%0D%0A @@ -611,32 +611,39 @@ node%5D;%0D%0A +delete this._tree%5Bthis. @@ -641,26 +641,18 @@ ree%5B -this._size%5D = null +last_node%5D ;%0D%0A
1de7537210a5db3e1abcb19ae93493029f3d159e
Copy the default labels to the meeting series when inserting a new series
imports/collections/meetingseries_private.js
imports/collections/meetingseries_private.js
import { Meteor } from 'meteor/meteor'; import { Mongo } from 'meteor/mongo'; import { MeetingSeries } from './../meetingseries'; import { Minutes } from './../minutes'; import { MeetingSeriesSchema } from './meetingseries.schema'; import { UserRoles } from "./../userroles"; export var MeetingSeriesCollection = new Mo...
JavaScript
0
@@ -268,16 +268,69 @@ rroles%22; +%0Aimport %7B GlobalSettings %7D from %22./../GlobalSettings%22 %0A%0Aexport @@ -1677,16 +1677,377 @@ Id()%5D;%0A%0A + if (Meteor.isServer) %7B%0A // copy the default labels to the series%0A doc.availableLabels = GlobalSettings.getDefaultLabels();%0A ...
b469d4e553d07ba62c07c16b5e8a64deda9232dd
Enable button on success mode
lib/js/countastic.js
lib/js/countastic.js
/* * * Countastic * Provides a twitter-like character counter for any text input or textarea * * Version: 1.0.0 * Homepage: http://github.com/rbmrclo/countastic * Author: Robbie Marcelo (www.robbiemarcelo.com) * * Copyright (c) 2013 Robbie Marcelo * Licensed under the MIT (http://www.opensource.org/licenses/mit...
JavaScript
0.000001
@@ -6835,24 +6835,59 @@ , counter);%0A + this.enableButton(button);%0A %7D%0A
377b73dcddfd431c46fb35dc35e316ce5eada542
fix exceptions under some circumstances
src/service/xhr.bulk.js
src/service/xhr.bulk.js
'use strict'; /** * @workInProgress * @ngdoc service * @name angular.service.$xhr.bulk * @requires $xhr * @requires $xhr.error * @requires $log * * @description * * @example */ angularServiceInject('$xhr.bulk', function($xhr, $error, $log){ var requests = [], scope = this; function bulkXHR(method,...
JavaScript
0
@@ -1048,27 +1048,129 @@ ccess, error -) %7B +back) %7B%0A assertArgFn(success = success %7C%7C noop, 0);%0A assertArgFn(errorback = errorback %7C%7C noop, 1); %0A forEach @@ -2023,25 +2023,15 @@ -( success - %7C%7C noop) ();%0A @@ -2451,24 +2451,13 @@ - (error %7C%7C noop -) ();%0A @@ -2474...
341a639400d5e8de14697a32ba1b29027ed45213
Remove uploadOnlyNewFiles for gulp upload task
gulpfile.babel.js
gulpfile.babel.js
import gulp from 'gulp'; import eslint from 'gulp-eslint'; import util from 'gulp-util'; import plumber from 'gulp-plumber'; import uglify from 'gulp-uglify'; import rename from 'gulp-rename'; import babel from 'gulp-babel'; import buffer from 'gulp-buffer'; import del from 'del'; import webpack from 'webpack'; import ...
JavaScript
0
@@ -3184,40 +3184,8 @@ /js' -,%0A uploadNewFilesOnly: true %0A
5dcc820c0a08d21be83e8ff34d38ed0ae781dff6
fix clickCircle
scripts/geoleaflet-client.js
scripts/geoleaflet-client.js
/* @flow */ /*global L, initReact, Array, detailView, topojson, georeactor, valuesForField, clickCircle */ (function() { var map; mapJSONfile = function(gj) { dataLayer = L.geoJson(gj, { style: function (feature) { return { fillColor: '#f00', fillOpacity: 0, color: ...
JavaScript
0.000001
@@ -87,21 +87,8 @@ ield -, clickCircle */%0A @@ -111,16 +111,29 @@ var map +, clickCircle ;%0A%0A map
48d18597234bed153e3cf10531fb283095b9738a
Load enviroment variables into config
src/site/store/index.js
src/site/store/index.js
import Vue from 'vue'; import Vuex from 'vuex'; const state = { loggedIn: false, user: {}, token: null, config: null }; /* eslint-disable no-shadow */ const mutations = { loggedIn(state, payload) { state.loggedIn = payload; }, user(state, payload) { if (!payload) { state.user = {}; localStorage.remov...
JavaScript
0.000002
@@ -810,125 +810,338 @@ %7B%0A%09%09 -/* TODO: Get env variables from context/process */%0A%09%09const config = require('~/config.js');%0A%09%09commit('config', config +commit('config', %7B%0A%09%09%09version: process.env.npm_package_version,%0A%09%09%09URL: process.env.DOMAIN,%0A%09%09%09baseURL: %60$%7Bprocess.env.D...
70f226ca1e8e6b8798f0a7be8e063211f7156ddc
merge with global tags instead of overriding
lib/loggly/client.js
lib/loggly/client.js
/* * client.js: Core client functions for accessing Loggly * * (C) 2010 Nodejitsu Inc. * MIT LICENSE * */ var events = require('events'), util = require('util'), qs = require('querystring'), common = require('./common'), loggly = require('../loggly'), Search = require('./search').Search; // ...
JavaScript
0
@@ -3313,16 +3313,71 @@ filter +on them and concat%0A // with any tags that were passed or just @@ -3395,21 +3395,16 @@ tags if -%0A // they ex @@ -3436,27 +3436,82 @@ ? -this.tagFilter(tags +(this.tags ? this.tags.concat(this.tagFilter(tags)) : this.tagFilter(tags) )%0A