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 |
|---|---|---|---|---|---|---|---|
e41a625b6bb754eb79953c12c0638a74bda23f6f | fix wrong failure record in postman5.2 test | server/util/newman.js | server/util/newman.js | const newman = require('newman')
, newmanIntervalLogger = require('./log').get('newman')
, intervalIds = require('./intervalIds')
, redis = require('./redis')
, date = require('date-and-time')
, uuidv1 = require('uuid/v1')
, safeEval = require('safe-eval');
const _newman = {
run: function (newmanOption, ... | JavaScript | 0.000001 | @@ -3198,16 +3198,30 @@
.message
+.substr(0, 80)
;%0A
@@ -3295,41 +3295,37 @@
ion.
-error.name === 'AssertionFailure'
+at.indexOf('assertion') === 0
) %7B%0A
@@ -3614,32 +3614,86 @@
%7D else
+ if (failureExecution.at.indexOf('test-script') === 0)
%7B%0A
|
e9adfa01eb265fe4d31e5476cdd7e2b18c50ec37 | Test toggleClientNotification. Fixes #68 | test/testClient.js | test/testClient.js | var mercurius = require('../index.js');
var request = require('supertest');
var assert = require('assert');
var nock = require('nock');
var testUtils = require('./testUtils.js');
describe('mercurius clients support', function() {
var token;
before(function() {
return mercurius.ready
.then(() => testUtils.... | JavaScript | 0 | @@ -1119,13 +1119,1729 @@
);%0A %7D);
+%0A%0A it('toggle (disable) notifications for a client', function(done) %7B%0A request(mercurius.app)%0A .post('/toggleClientNotification')%0A .send(%7B%0A token: token,%0A machineId: 'machineXZ',%0A client: 'clientXZ',%0A %7D)%0A .expect(function(... |
d0769e598c09e0c1bb2925652c26ebf572285f17 | Remove port from IIS x-forwarded-for header | server/weblistener.js | server/weblistener.js | var engine = require('engine.io'),
WebsocketRpc = require('./websocketrpc.js'),
events = require('events'),
http = require('http'),
https = require('https'),
util = require('util'),
fs = require('fs'),
dns = require('dns'),
url ... | JavaScript | 0 | @@ -5301,16 +5301,146 @@
d-for'%5D;
+%0A%0A // Some reverse proxies (IIS) may include the port, so lets remove that%0A address = (address %7C%7C '').split(':')%5B0%5D;
%0A %7D%0A%0A
|
4fc12335170310c6950fdaafd0b2b82914e3155b | Add Get/Set Combo tests | test/testGetter.js | test/testGetter.js | "use strict";
var _ = require('lodash'),
IndexedLens = require('../src/array/IndexedLens'),
Getter = require('../src/Getter');
describe('Getter', function () {
var testArr, testLens;
beforeEach(function () {
testArr = [1, 2, 3];
testLens = new IndexedLens(0);
});
describe('#f... | JavaScript | 0 | @@ -127,16 +127,94 @@
Getter')
+,%0A Setter = require('../src/Setter'),%0A IdLens = require('../src/IdLens')
;%0A%0Adescr
@@ -1394,12 +1394,604 @@
%0A %7D);
+%0A%0A describe('Get/Set Combo', function () %7B%0A var getSetLens = Getter.fromLens(Setter.fromLens(new IdLens()));%0A%0A it('should... |
77e0ed5b5ac01d849b066267c663f9f8efa66af3 | Fix test name | test/testNotify.js | test/testNotify.js | var mercurius = require('../index.js');
var request = require('supertest');
var assert = require('assert');
var nock = require('nock');
var crypto = require('crypto');
var urlBase64 = require('urlsafe-base64');
var testUtils = require('./testUtils.js');
var userCurve = crypto.createECDH('prime256v1');
var userPublicK... | JavaScript | 0.001029 | @@ -417,18 +417,14 @@
ius
-unregister
+notify
', f
|
fe41189b08110acfc875101b97dc740a775b729a | Fix issue where officialLink is demanded for unofficial votes | lib/collections/votes.js | lib/collections/votes.js | VotesCollection = new Mongo.Collection('votesCollection');
Meteor.methods({
voteInsert: function(voteAttributes) {
check(Meteor.userId(), String);
check(voteAttributes, {
title: String,
jurisType: String,
jurisName: String,
officialLink: String,
... | JavaScript | 0 | @@ -405,32 +405,79 @@
n%0A%0A%0A %7D);%0A
+ if (voteAttributes.officialLink) %7B%0A
if (vote
@@ -535,16 +535,20 @@
+
%7D else %7B
@@ -548,16 +548,20 @@
else %7B%0A
+
@@ -660,16 +660,30 @@
gain.')%0A
+ %7D%0A
|
3bc7a4a972997494721ae31def699b9c0719334b | Fix comment | session-api/server.js | session-api/server.js | var port = process.argv[2];
var Session = require('./src/sessionModel');
var sessionService = require('./src/sessionService');
var convertMessageConsumer = require('./src/convertMessageConsumer');
var request = require('request');
var mysql = require('./src/mysql');
var dbPool = mysql.createPool();
var express = req... | JavaScript | 0 | @@ -509,16 +509,19 @@
/api';%0A%0A
+//
start li
|
c6217963e42322accc3f0bacb6540f8791f67ab0 | Stop propagation for all keys but exempt the save button | gr-editor/codemirror-element.js | gr-editor/codemirror-element.js | /**
* @license
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | JavaScript | 0.000005 | @@ -2335,16 +2335,321 @@
%7D);%0A
+ this._nativeMirror.getInputField().addEventListener('keydown', e =%3E %7B%0A // Exempt the ctrl/command+s key from preventing events from propagating%0A // through the app. This is because we use it to save changes.%0A if (!e.metaKey && !e.ctrlKey) %7B%0A ... |
f0b189a0c43cb42d643e375390d0f940afe4d2eb | fix typo | lib/community/changes.js | lib/community/changes.js | var Promise = require('bluebird');
module.exports = {
changedCommunities: function(startTime, endTime) {
return Promise.join(
// new members
User.createdInTimeRange(startTime, endTime).fetchAll({withRelated: ['memberships']}),
// new posts
Post.createdInTimeRange(startTime, endTime)
... | JavaScript | 0.999991 | @@ -1369,16 +1369,17 @@
rt((a, b
+)
=%3E a %3E
|
1b8ae834e663252c170fb0eed2a643d5482a55fe | Add class to render for ten day. | lib/components/TenDay.js | lib/components/TenDay.js | import React from 'react';
import WeatherIcons from '../weather_icons/WeatherIcons';
const TenDay = ({ tenDayForecast }) => {
if(!tenDayForecast) {
return(
<div></div>
)
}
const forecastArray = tenDayForecast.simpleforecast.forecastday;
const icons = new WeatherIcons();
return(
<article>
... | JavaScript | 0 | @@ -304,23 +304,23 @@
n(%0A %3C
-article
+section
%3E%0A
@@ -690,15 +690,15 @@
%3C/
-article
+section
%3E%0A
|
d273c3686e5c914b001023e308d138fb31b25e2b | Update timer docs | lib/components/timers.js | lib/components/timers.js | /**
* A named group of timers. Each key is the name of a timer, and the value is a {@link Components.timer}.
* @typedef {Object} timers
* @memberof Components
*/
/**
* Measure time or run code after a duration.
* @typedef {Object} timer
* @memberof Components
* @property {bool} running - Determines if the timer... | JavaScript | 0 | @@ -284,154 +284,93 @@
ol%7D
-running - Determines if the timer is accumulating time.%0A * @property %7Bfloat%7D time - The amount of time, in milliseconds, the timer has accumulated
+loop - %3Ccode%3Etrue%3C/code%3E if the timer should repeat after it reaches %3Ccode%3Emax%3C/code%3E
.%0A *
@@ -588,32 +588,108 @@
... |
3e3e3f50ec46f0668c0b75f1daf11c42c91fda99 | Fix blueprint polymer version 🔨 | blueprints/ember-polymer/index.js | blueprints/ember-polymer/index.js | /* eslint-env node */
module.exports = {
normalizeEntityName: function() {}, // no-op since we're just adding deps
afterInstall: function() {
return this.addBowerPackagesToProject([{
name: 'polymer',
target: '1.9.1'
}, {
name: 'webcomponentsjs',
target: '0.7.24'
}]);
}
};
| JavaScript | 0 | @@ -230,13 +230,14 @@
t: '
-1.9.1
+%5E2.2.0
'%0A
@@ -293,14 +293,15 @@
t: '
-0.7.24
+%5E1.0.17
'%0A
|
b0a0f0f6e962efb6355a03a61eed969578362112 | Implement enqueing of messages. | lib/crane-amqp/broker.js | lib/crane-amqp/broker.js | var amqp = require('amqp')
, util = require('util');
/**
* `Broker` constructor.
*
* @api public
*/
function Broker() {
this._exchange = null;
this._queues = {};
}
Broker.prototype.connect = function(options, cb) {
var self = this;
this._connection = amqp.createConnection(options);
this._connection.on... | JavaScript | 0.000001 | @@ -49,16 +49,71 @@
til');%0A%0A
+var NONPERSISTENT_MODE = 1;%0Avar PERSISTENT_MODE = 2;%0A%0A%0A
/**%0A * %60
@@ -399,16 +399,235 @@
%7B%0A //
+ Get the default exchange, which is a direct exchange, and thus suitable%0A // for use as a task queue.%0A %0A // TODO: Ensure that default exhange is durable.%... |
565ab9a85aac193873f472cedf0a2f56d241453b | Support for browsers which don't return tab id from devpanel | src/app/middlewares/api.js | src/app/middlewares/api.js | import stringifyJSON from 'remotedev-app/lib/utils/stringifyJSON';
import { UPDATE_STATE, REMOVE_INSTANCE, LIFTED_ACTION } from 'remotedev-app/lib/constants/actionTypes';
import { nonReduxDispatch } from 'remotedev-app/lib/utils/monitorActions';
import syncOptions from '../../browser/extension/options/syncOptions';
imp... | JavaScript | 0 | @@ -6010,24 +6010,36 @@
;%0A %7D else %7B
+ // devpanel
%0A id = po
@@ -6045,16 +6045,39 @@
ort.name
+ %7C%7C port.sender.frameId
;%0A co
@@ -6131,18 +6131,25 @@
s(true,
-id
+port.name
);%0A m
|
04fef684ef7c7c508a132e60a31ed18cc0a034e4 | Add @since for escapeURI function. | assets/js/util/escape-uri.js | assets/js/util/escape-uri.js | /**
* Escape URI components utility.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE... | JavaScript | 0.000001 | @@ -722,16 +722,37 @@
ing.%0A *%0A
+ * @since n.e.x.t%0A *%0A
* @para
|
89e9f139f68a192025d3deedc3c0b8dba00b803f | add create channel as child route (#11579) | shared/chat/routes.js | shared/chat/routes.js | // @flow
import AttachmentGetTitles from './conversation/attachment-get-titles/container'
import AttachmentFullscreen from './conversation/attachment-fullscreen/container'
import BlockConversationWarning from './conversation/block-conversation-warning/container'
import Conversation from './conversation/container'
impor... | JavaScript | 0 | @@ -1320,24 +1320,140 @@
ren: %7B%7D,%0A%7D%0A%0A
+const createChannel = %7B%0A component: CreateChannel,%0A tags: makeLeafTags(%7BhideStatusBar: true%7D),%0A children: %7B%7D,%0A%7D%0A%0A
const manage
@@ -1461,24 +1461,24 @@
hannels = %7B%0A
-
component:
@@ -1597,16 +1597,35 @@
hannel,%0A
+ createChannel,... |
ada0c968eeffc700ae1ff4cb0af38d5ec228ec14 | Update CombatLogParser.js | src/Parser/DeathKnight/Unholy/CombatLogParser.js | src/Parser/DeathKnight/Unholy/CombatLogParser.js | import CoreCombatLogParser from 'Parser/Core/CombatLogParser';
import DamageDone from 'Parser/Core/Modules/DamageDone';
import ColdHeart from 'Parser/DeathKnight/Shared/Items/ColdHeart';
import Tier20_2p from './Modules/Items/Tier20_2p';
import ColdHeartEfficiency from './Modules/Items/ColdHeartEfficiency';
import Ab... | JavaScript | 0 | @@ -1738,32 +1738,42 @@
p,%0A coldHeart
+Efficiency
: ColdHeart,%0A%0A
@@ -1767,16 +1767,26 @@
oldHeart
+Efficiency
,%0A%0A /
|
3292bc5437e49b383b75b7cfc338dbe35260f518 | define date.year & licens.owner properties | src/npm-template-sync.js | src/npm-template-sync.js | //#!/usr/bin/env node
/* jslint node: true, esnext: true */
'use strict';
const commander = require('commander'),
keychain = require('keychain'),
github = require('octonode'),
pr = require('pull-request'),
ee = require('expression-expander');
import travis from './travis';
import readme from './readme';
imp... | JavaScript | 0.000001 | @@ -2791,16 +2791,73 @@
e': repo
+,%0A 'date.year': '2016',%0A 'license.owner': 'arlac77'
%0A %7D;%0A%0A
|
537715b6c8e1552b95b1ee024976d1d7a9ad1c73 | Define scope for GitHub oAuth | modules/users/server/routes/auth.server.routes.js | modules/users/server/routes/auth.server.routes.js | 'use strict';
/**
* Module dependencies.
*/
var usersPolicy = require('../policies/users.server.policy'),
userAuthentication = require('../controllers/users.authentication.server.controller'),
userPassword = require('../controllers/users.password.server.controller'),
passport = require('passport');
modu... | JavaScript | 0.00006 | @@ -2107,24 +2107,77 @@
ate('github'
+, %7B%0A scope: %5B%0A 'user:email'%0A %5D%0A %7D
));%0A app.ro
|
d58c62f7d2ab1d1c884e45bc9d3e2a11b9d3474c | Add polling for new questions | frontend/app/scripts/controllers/questionlist.js | frontend/app/scripts/controllers/questionlist.js | 'use strict';
/**
* @ngdoc function
* @name conferenceAppApp.controller:QuestionlistCtrl
* @description
* # QuestionlistCtrl
* Controller of the conferenceAppApp
*/
angular.module('meanDemoApp')
.controller('QuestionlistCtrl', function ($scope, Question) {
Question.query(null,
function(questions) {
... | JavaScript | 0 | @@ -246,16 +246,26 @@
($scope,
+ $timeout,
Questio
@@ -270,16 +270,98 @@
ion) %7B%0A%0A
+ var pollInterval = 20000; // in milliseconds%0A%0A function getQuestions() %7B%0A
Ques
@@ -377,16 +377,18 @@
y(null,%0A
+
fu
@@ -415,16 +415,18 @@
+
+
$scope.q
@@ -453,19 +453,326 @@
;%0A ... |
a81bb4917fea2a4320d9e3e254fe7e217b016887 | Add utility method to getCurrentScript | src/lib/utils.js | src/lib/utils.js | module.exports = {
getViewPortInfo: function getViewPort () {
var e = document.documentElement
var g = document.getElementsByTagName('body')[0]
var x = window.innerWidth || e.clientWidth || g.clientWidth
var y = window.innerHeight || e.clientHeight || g.clientHeight
return {
width: x,
... | JavaScript | 0 | @@ -587,11 +587,284 @@
ned'%0A %7D
+,%0A%0A getCurrentScript: function () %7B%0A // Source http://www.2ality.com/2014/05/current-script.html%0A return document.currentScript %7C%7C (function () %7B%0A var scripts = document.getElementsByTagName('script')%0A return scripts%5Bscripts.length - 1%5D%... |
2edd30db7320aa0e13a010ce79dded31f9fbafe3 | Fix lint | lib/commands/bootstrap/installExternalPackages.js | lib/commands/bootstrap/installExternalPackages.js | var hasMatchingDependency = require("./hasMatchingDependency");
var npmUtils = require("../../utils/npmUtils");
var find = require("lodash.find");
module.exports = function installExternalPackages(packageLoc, pkg, packages, callback) {
var deps = Object.keys(pkg.pkg.dependencies);
var... | JavaScript | 0.000032 | @@ -416,32 +416,33 @@
.filter(function
+
(dep) %7B%0A var
@@ -472,16 +472,17 @@
function
+
(p) %7B%0A
@@ -629,16 +629,17 @@
function
+
(dep) %7B%0A
@@ -828,11 +828,11 @@
p +
-'@'
+%22@%22
+ v
|
9ed6e30b00510678fa7ac69493f1487255c8d551 | improve ordering of supported extensions (#806) | lib/gui/pages/main/controllers/image-selection.js | lib/gui/pages/main/controllers/image-selection.js | /*
* Copyright 2016 Resin.io
*
* 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 to in w... | JavaScript | 0.000052 | @@ -893,14 +893,60 @@
= _.
-slice(
+intersection(%5B%0A 'img',%0A 'iso',%0A 'zip'%0A %5D,
Supp
@@ -985,14 +985,8 @@
ns()
-, 0, 3
);%0A%0A
@@ -1217,16 +1217,23 @@
sions%0A
+).sort(
);%0A%0A /*
|
c9924e86ed77d500dc9e3bf040ee598f78098725 | Refactor to more easily support ESM transformation | lib/node_modules/@stdlib/stats/chi2gof/lib/pmf.js | lib/node_modules/@stdlib/stats/chi2gof/lib/pmf.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0 | @@ -631,162 +631,26 @@
;%0A%0A/
-*%0A* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.%0A*/%0A%0A// MAIN //%0A%0Avar PMF = %7B%7D;%0A%0APMF%5B '
+/ MODULES //%0A%0Avar
bern
@@ -654,19 +654,16 @@
ernoulli
-' %5D
= requi
@@ -714,22 +714,20 @@
);%0A
... |
82cc1bdcccdd5708c1276bcab7976a93da3257eb | load previous term course cards only for pce students | myuw/static/js/card/schedule/prev_course_cards.js | myuw/static/js/card/schedule/prev_course_cards.js | var PrevTermCourseCards = {
name: 'PrevTermCourseCards',
dom_target: undefined,
term: undefined,
render_init: function() {
PrevTermCourseCards.term = "prev_unfinished";
PrevTermCourseCards.dom_target = $("#PrevTermCourseCards");
if (!window.user.student) {
$("#PrevTe... | JavaScript | 0 | @@ -284,15 +284,11 @@
ser.
-student
+pce
) %7B%0A
|
800150ccd14a3bf9ee91eecb4af3ce19c780be3b | Remove lint warnings | lib/common/reset-search-paths.js | lib/common/reset-search-paths.js | const path = require('path')
const Module = require('module')
// Clear Node's global search paths.
Module.globalPaths.length = 0
// Clear current and parent(init.js)'s search paths.
module.paths = []
module.parent.paths = []
// Prevent Node from adding paths outside this app to search paths.
Module._nodeModulePaths ... | JavaScript | 0.000001 | @@ -657,17 +657,31 @@
%0A%0A
+let tip%0A let i%0A
for (
-let
tip
|
e8de9d0d2e1073ff2b94cf95a1cc21a59989b870 | remove fa icon | lib/components/user/back-link.js | lib/components/user/back-link.js | import React from 'react'
import { Button } from 'react-bootstrap'
import { FormattedMessage } from 'react-intl'
import styled from 'styled-components'
import { navigateBack } from '../../util/ui'
import { IconWithMargin } from './styled'
const StyledButton = styled(Button)`
display: block;
padding: 0;
`
/**
*... | JavaScript | 0.000017 | @@ -4,24 +4,59 @@
ort
-React from 'reac
+%7B ArrowLeft %7D from '@styled-icons/fa-solid/ArrowLef
t'%0Ai
@@ -141,16 +141,42 @@
t-intl'%0A
+import React from 'react'%0A
import s
@@ -256,42 +256,40 @@
ui'%0A
-%0A
import
-%7B IconWithMargin %7D
+StyledIconWrapper
from '.
/sty
@@ -288,15 +288,25 @@
m '.
+./util
... |
05dbd4a3a3e7f765360de36f9344dc809f97e85f | Fix contest scoring | app/controller.js | app/controller.js | CATS.Controller = Classify({
init: function () {
//other
this.adapters = {};
this.rules = {};
this.utils = null;
//models
this.users = {};
this.problems = {};
this.prizes = {};
this.contests = {};
this.chats = {};
this.runs = {}... | JavaScript | 0 | @@ -3016,32 +3016,30 @@
test.runs =
-$
+_
.uniq
-ue
(united_cont
@@ -3193,16 +3193,14 @@
s =
-$
+_
.uniq
-ue
(uni
|
1bbffbc8129bf32b22c02d2beeed41b26958f70e | replace var by let | resizable-panels.js | resizable-panels.js | class ResizablePanels extends Polymer.GestureEventListeners(Polymer.Element) {
static get is() { return 'resizable-panels' }
static get properties() {
return {
/**
* Vertical resizing. Default is horizontal.
*/
vertical: {
type: Boolean,
value: false,
notify: t... | JavaScript | 0.000139 | @@ -1449,19 +1449,19 @@
%7B%0A
-var
+let
knob =
@@ -1701,19 +1701,19 @@
) %7B%0A
-var
+let
state =
@@ -2063,19 +2063,19 @@
);%0A%0A
-var
+let
next =
@@ -2107,19 +2107,19 @@
ng;%0A
-var
+let
previou
@@ -2576,19 +2576,19 @@
t;%0A%0A
-var
+let
hParams
@@ -2710,19 +2710,19 @@
%7D;%0... |
33bf18fc6c2284375bc3f510c855bf06dd8ba0d0 | Update page-manipulation.js | src/page-manipulation.js | src/page-manipulation.js | (function($){
$(".layout__slot:nth-child(1)").attr("id","calendar-list");
$(".layout__slot:nth-child(2)").attr("id","app-list");
$(".layout__slot:nth-child(3)").attr("id","activity-list");
$(".layout__slot:nth-child(4)").attr("id","tweets-list");
$(".layout__slot:nth-child(5)").attr("id","campus-post-list");... | JavaScript | 0.000001 | @@ -1136,24 +1136,249 @@
%22)%0A %7D);%0A %0A
+ var activities = activityList.find(%22.notification li%22);%0A activities.on(%22click%22,function(e)%7B%0A if($(e.target).is(%22a%22))%0A return;%0A console.log(e)%0A window.location = $(this).find(%22strong a%22).attr('href');%0A %7D)%0A %0A
var o... |
1cb02bc7080e0b40914d156e18670a44830bf775 | Remove Slider from PlaylistTab | src/pages/PlaylistTab.js | src/pages/PlaylistTab.js | import {player} from '../model/Player';
import {formatTime} from '../model/helpers';
import {Tab, TextView, Slider, CollectionView, ImageView} from 'tabris';
import {getCoverUrl} from '../model/server';
export default class PlaylistTab extends Tab {
constructor() {
super({
title: 'Playlist',
backgr... | JavaScript | 0 | @@ -105,16 +105,8 @@
iew,
- Slider,
Col
@@ -332,129 +332,8 @@
);%0A%0A
- this._slider = new Slider(%7B%0A left: 0, right: 0, top: %5B'prev()', 5%5D,%0A maximum: 1000%0A %7D).appendTo(this);%0A%0A
@@ -1591,25 +1591,38 @@
-this._slider.set(
+// TODO: update progress view
%7Bmax
@@ -1675,... |
467a7544de2e3ab7ab8fd13aff9bd3eca263bc02 | Create callable function2 | projects/PluckyDisaster.js | projects/PluckyDisaster.js | function Elevator() {
// body...
this.floors = Math.floor(Math.random() * 100) + 1 ;
this.currentFloor = Math.floor(this.floors / 2);
this.startingFloor = Math.floor(this.floors / 2);
this.child = new Plucky;
this.player = new Player;
this.rollcount = 0;
this.diff = Math.abs(this.player.desiredFloor - t... | JavaScript | 0.000004 | @@ -2576,49 +2576,8 @@
();%0A
-getbutton();%0A%7D;%0A%0Afunction getButton()%7B%0A
docu
|
68258f4700edac87439060e57c83706423c391a8 | add default mmap location when city not parsed | src/HouseFinder/FrontendBundle/Resources/public/js/app/welcome/welcome.js | src/HouseFinder/FrontendBundle/Resources/public/js/app/welcome/welcome.js | angular.module('app.welcome', [])
.controller('WelcomeCtrl', ['$scope', 'UserService', 'MapService', 'AddressService', function ($scope, UserService, MapService, AddressService) {
$scope.loaded = true;
UserService.initLocation();
$scope.$on('searchFilterCityChange', function(e, dt){
... | JavaScript | 0 | @@ -373,16 +373,582 @@
(city)%7B%0A
+ var latitude = 50.44985, longitude = 30.523151; //KIEV%0A if (city.longitude === undefined %7C%7C city.latitude === undefined) %7B%0A if (UserService.location.longitude !== undefined && UserService.location.latitude !== undefined) %... |
cf8c1cb53c9f03b3010a848ec85469f727eb187f | add filters | app/js/filters.js | app/js/filters.js | 'use strict';
/* Filters */
var puntsFilter = angular.module('puntsFilters', []);
puntsFilter.filter('checkmark', function () {
return function (input) {
return input ? '\u2713' : '\u2718';
};
});
puntsFilter.filter('puntActive', function () {
return function (items, from, to) {
var df = ... | JavaScript | 0.000001 | @@ -805,16 +805,18 @@
;%0A%7D);%0A%0A%0A
+/*
function
@@ -1380,20 +1380,25 @@
n result;%0A %7D;%0A%7D);
+%0A%0A */
|
a79d9dc1d681e45dca4ff085ed2d9a14b59825c0 | Comment out reference to entitites package as this package is not used and is not referenced from the package.json. This line could be deleted instead of commented out, but the reference is commented out it other files, so I followed that pattern to maintain consitency. | app/lib/common.js | app/lib/common.js | var cheerio = require("cheerio");
var entities = require("entities");
var marked = require("marked");
var highlight = require('highlight.js');
var common = {
highlight: function(code, name) {
var highlighted;
if (name) {
highlighted = highlight.highlight(name, code).value;
} else {
... | JavaScript | 0 | @@ -23,24 +23,27 @@
%22cheerio%22);%0A
+//
var entities
|
1953c17f41b43ce5be2e0688004cfbfe5027c03a | move getCurrentPath into the outer scope and implement smooth and simplify. | src/path/CompoundPath.js | src/path/CompoundPath.js | new function() {
CompoundPath = PathItem.extend({
initialize: function(items) {
this.base();
this.children = [];
if (items) {
for (var i = 0, l = items.length; i < l; i++) {
this.appendTop(items[i]);
}
}
},
draw: function(ctx) {
if (this.children.length) {
var firstChild = this.c... | JavaScript | 0 | @@ -10,16 +10,232 @@
ion() %7B%0A
+%09%0A%09function getCurrentPath(compoundPath) %7B%0A%09%09if (compoundPath.children.length) %7B%0A%09%09%09return compoundPath.children%5BcompoundPath.children.length - 1%5D;%0A%09%09%7D else %7B%0A%09%09%09throw Error('Use a moveTo() command first');%0A%09%09%7D%0A%09%7D%0A%09%0A
... |
52dd24097f494cb8d3b11b9a228b87012988d1a0 | Define PathIterator#getPoint(), #getTangent(), #getNormal() and #getCurvature(). | src/path/PathIterator.js | src/path/PathIterator.js | /*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey
* http://scratchdisk.com/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
/**
* ... | JavaScript | 0.000001 | @@ -6029,11 +6029,220 @@
%0A %7D%0A%7D
-);
+, Base.each(%5B'getPoint', 'getTangent', 'getNormal', 'getCurvature'%5D,%0A function(name, index) %7B%0A this%5Bname%5D = function(offset) %7B%0A return this.evaluate(offset, index);%0A %7D;%0A %7D, %7B%7D)%0A);%0A
%0A
|
32732e209fba8d254f7b245eaa0667aa845e3e7a | test deco fix | sv/table_general_socket.js | sv/table_general_socket.js | /* General settings modification here.
** Copyright © 2014 Ngine Networks.
*/
function get_player_seat_by_nickname(seats, nick) {
if (seats.seat1.player.nickname == nick) {
seats.seat1.state = "available";
return seats.seat1.player.seat_nb;
} else if (seats.seat2.player.nickname == ni... | JavaScript | 0 | @@ -3034,32 +3034,120 @@
yer_seat_idx);%0D%0A
+%09%09%09%09var seatPlayer = table.seats.seat + player_seat_idx;%0D%0A%09%09%09%09seatPlayer%5Bplayer%5D = -1;%0D%0A
%09%09%09%09console.log(
|
b1a290b25e9760924b9a494789be48bdf6ba83a5 | Remove latest verion from postinstall.js (#84) (#90) | postinstall.js | postinstall.js | /*
This script is used as postinstall hook.
When you install mongodb-memory-server package
npm or yarn downloads the latest version of mongodb binaries.
It helps to skip timeout setup `jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;`
when first test run hits MongoDB binary downloading to the cache.
*/
function isModuleExi... | JavaScript | 0 | @@ -615,34 +615,8 @@
th(%7B
-%0A version: 'latest',%0A
%7D).t
@@ -707,10 +707,70 @@
;%0A %7D);%0A
+%7D else %7B%0A console.log(%22Can't resolve MongoBinary module%22);%0A
%7D%0A
|
b7904f33815fa0b56a75860ae03deddcfcda2c70 | Update tests | src/components/Catalog/__tests__/Catalog.test.js | src/components/Catalog/__tests__/Catalog.test.js | import React from 'react'
import { shallow, mount } from 'enzyme'
import Loader from '../../Loader/Loader'
import CatalogPreview from '../CatalogPreview/CatalogPreview'
import catalog from '../../../fetch/__test__/catalog.json'
import metrics from '../../../fetch/__test__/metrics.json'
const Catalog = require('proxyq... | JavaScript | 0.000001 | @@ -777,37 +777,39 @@
const wrapper =
-mount
+shallow
(%3CCatalog catalo
@@ -901,726 +901,82 @@
-return wrapper%0A .instance()%0A .componentWillMount()%0A .then(() =%3E %7B%0A expect(wrapper.containsMatchingElement(catalogPreview)).to.be.true%0A %7D)%0A %7D)%0A%0A %7D)%... |
54c8165501434e621b6d7ba20ddbfed6baa74ae1 | check for static jobs that are already running | lib/deployment/deploy.js | lib/deployment/deploy.js | // the leader runs the registry and the git push
var async = require('async')
var flatten = require('etcd-flatten')
var EventEmitter = require('events').EventEmitter
var tools = require('../tools')
var Schedule = require('./schedule')
var logger = require('../tools/logger')
var Job = require('../tools/job')
var Log = r... | JavaScript | 0 | @@ -524,388 +524,27 @@
ploy
-Job(job, done)%7B%0A%09%09var jobObject = Job(job)%0A%09%09jobObject.ensureValues()%0A%0A%09%09%0A%0A%09%09// we should run only one of these%0A%09%09if(jobObject.isStatic())%7B%0A%0A%09%09%7D%0A%0A%09%09console.log('-------------------------------------------');%0A%09%09console.log('-----... |
78ecbdb79bdf347a0fc3f520967130106278d3b3 | don't decode html value attributes. | gui-resources/scripts/js/app.js | gui-resources/scripts/js/app.js | 'use strict';
var requirejs = require('./lib/nodejs/requirejs-clear-cache'),
path = require('path'),
fs = require('fs'),
Logger = require('./lib/logger'),
urlHref = require('./lib/nodejs/url-href'),
grunt = require('grunt'),
lodash = require('... | JavaScript | 0.997469 | @@ -3783,32 +3783,296 @@
sent = true;%0A
+ // by default cheerio is decoding html value attributes.%0A // assume that this is right.%0A // ex: syle=%22background:'url(image)'%22 became syle=%22background:'url(image)'%22%0A layout.$el.options.decodeEntities = fal... |
4bead6ee514ab004a42465d0986bf780306a8115 | Replace content | pages/index/page/page.bemjson.js | pages/index/page/page.bemjson.js | module.exports = {
block: 'page',
content: [
{
elem: 'head',
content: [
{ block: 'meta', attrs: { charset: 'utf-8' }},
{ block: 'meta', attrs: { 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' }},
{
elem: 'ti... | JavaScript | 0.999126 | @@ -1063,922 +1063,112 @@
k: '
-logo',%0A content: %5B%0A %7B%0A block: 'image',%0A mix: %5B%7B block: 'logo', elem: 'bem' %7D%5D,%0A url: '//bem.info/m/_/20zuV2gLiyoaqrHv9LoBRTmB0Ow.svg'%0A ... |
5c18bc427d12e03b12831242095fc25c4daad5e5 | Update .eslintrc.js | .eslintrc.js | .eslintrc.js | module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ['plugin:react/recommended', 'airbnb-base', 'plugin:prettier/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaV... | JavaScript | 0 | @@ -415,32 +415,67 @@
assign': 'off',%0A
+ 'no-underscore-dangle': 'off',%0A
'prefer-obje
|
e58896ef40ea0ced0e3b0f93243c71d287bfe399 | clean up math | tests/Math.spec.js | tests/Math.spec.js | // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-math
describe('new Math features', () => {
describe('the methods', () => {
it('has Math.sign', () => {
assert.equal(Math.sign(3), 1);
assert.equal(Math.sign(-3), -1);
});
it('has Math.trunc', () => {
assert.equal(Math.trunc(1.5... | JavaScript | 0.002916 | @@ -1674,52 +1674,8 @@
%7D);%0A
- %7D);%0A describe('the properties', () =%3E %7B%0A%0A
%7D)
|
9300eb71dcc786cbd682c1cc3366617fc0c3231d | Update link | src/client/components/Footer/index.js | src/client/components/Footer/index.js | import React from "react";
import PropTypes from "prop-types";
import { CentredContainer as Container } from "../BlockContainer";
import styled from "styled-components";
const Text = styled.p`padding: 1em;`;
const Footer = ({ className }) =>
<Container className={className}>
<Text>
Made with ❤️ by <a href... | JavaScript | 0 | @@ -186,16 +186,19 @@
tyled.p%60
+%0A
padding:
@@ -202,16 +202,17 @@
ng: 1em;
+%0A
%60;%0A%0Acons
@@ -240,16 +240,18 @@
me %7D) =%3E
+ (
%0A %3CCont
@@ -329,23 +329,12 @@
http
+s
://
-twitter.com/
imbh
@@ -339,16 +339,20 @@
bhargav5
+.com
%22%3Eimbhar
@@ -386,16 +386,18 @@
ntainer%3E
+%0A)
;%0AFooter
|
48bcffb8a4bbb93a2bbf25f4e2305917c538c8f9 | add new utils to spark-exports | html/spark-exports.js | html/spark-exports.js | import {
dateInput,
formatDate,
bindUIEvents as bindDateInputUIEvents,
} from './base/inputs/dateInput';
import {
datePicker,
bindUIEvents as bindDatePickerUIEvents,
} from './base/inputs/datePicker';
import {
monetaryInput,
formatMonetary,
bindUIEvents as bindMonetaryUIEvents,
} from './base/inputs/mon... | JavaScript | 0 | @@ -3818,24 +3818,197 @@
ght-board';%0A
+import %7B toggleAriaExpanded as toggleAriaExpandedAttribute %7D from './utilities/toggleAriaExpanded';%0Aimport %7B generateAriaControls %7D from './utilities/generateAriaControls';%0A
import isEle
@@ -6008,11 +6008,66 @@
hValue,%0A
+ toggleAriaExpandedAttribute,%0A genera... |
43f8229ec620afd9a3af8868cd434fcde104d05d | remove deprecated no-await-in-loop rule | .eslintrc.js | .eslintrc.js | module.exports = {
root: true,
env: {
es6: true,
browser: true,
node: true,
},
extends: 'eslint:recommended',
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
}
},
plugins... | JavaScript | 0.000012 | @@ -2430,47 +2430,8 @@
r',%0A
- 'babel/no-await-in-loop': 'error',%0A
|
f105953154024094d605413902242426e3eacb88 | Maintain language through renderCompanions | lib/generators/base_generator.js | lib/generators/base_generator.js | var _ = require('underscore'),
async = require('async'),
BaseCliOb = require('../base_cli_ob'),
BaseGenerator,
VALID_GENERATORS = ['app', 'model', 'collection', 'view', 'controller', 'template', 'scaffold'];
function noop() {}
function passThrough(next) { next(); }
BaseGenerator = module.exports = Ba... | JavaScript | 0.001568 | @@ -3678,32 +3678,70 @@
var generator;%0A
+ var coffee = this.program.coffee;%0A
companions.f
@@ -3760,32 +3760,65 @@
ion(companion)%7B%0A
+ companion.coffee = coffee;%0A
generator
|
e370201b0d5743ef53b3eb94723428a506351121 | correct check in regsitry | src/structures/Registry.js | src/structures/Registry.js | const path = require('path');
const Command = require('./Command.js');
const Group = require('./Group.js');
const TypeReader = require('./TypeReader.js');
const Constants = require('../utility/Constants.js');
const LibraryHandler = require('../utility/LibraryHandler.js');
const requireAll = require('../utility/RequireA... | JavaScript | 0 | @@ -4649,154 +4649,8 @@
) %7B%0A
- if (typeof obj%5BgroupKey%5D !== 'string') %7B%0A throw new TypeError('The commands folder may only contain group folders.');%0A %7D%0A%0A
@@ -4712,28 +4712,24 @@
ame ===
-obj%5B
groupKey
%5D);%0A%0A
@@ -4720,17 +4720,16 @@
groupKey
-%5D
);%0A%0A... |
1c136bd81ec0589f5974c58edd3079510b9bb1e6 | Fix isExpanded PropTypes typo. s/boolean/bool/ | src/content/components/SummarizeProfileThread.js | src/content/components/SummarizeProfileThread.js | import React, { Component, PropTypes } from 'react';
import SummarizeLineGraph from './SummarizeLineGraph';
class SummarizeProfileThread extends Component {
render() {
const {summaryTable, rollingSummary, isExpanded, index, expandLength} = this.props;
if (index > expandLength && !isExpanded) {
return n... | JavaScript | 0.000026 | @@ -983,11 +983,8 @@
bool
-ean
,%0A
|
08db71e2fef800cf1acc7b6fa59c4c5c598dc082 | Add some tests for `altboiler.Boilerplate` | tests/altboiler.js | tests/altboiler.js | Tinytest.add('altboiler', function (test) {
var testInst = Object.create(altboiler)
test.equal(typeof testInst.__proto__, 'function', 'altboiler should be a function')
testInst.__proto__({test:1})
test.equal(testInst.config.test, 1, 'altboiler should add the properties from the passed object to altboiler.config... | JavaScript | 0 | @@ -2375,12 +2375,899 @@
ame'%0A )%0A%7D)%0A
+%0ATinytest.add('altboiler.Boilerplate', function (test) %7B%0A var testInst = Object.create(altboiler)%0A function cleanLB (str) %7B%0A while(str.indexOf('%5Cn') %3E -1) str = str.replace('%5Cn', '')%0A return str%0A %7D%0A test.isTrue(testInst.Boilerplate().in... |
0c4304fbe544200d4b634a67a9e5753ff826ec24 | Update song count and total track play time | public/javascripts/main.js | public/javascripts/main.js | var socket = io.connect(window.location.href);
$(document).ready(function() {
}); | JavaScript | 0 | @@ -73,11 +73,449 @@
on() %7B%0A%0A
+ $('#song-count').text($('.track').length + ' tracks')%0A%0A // Get total time%0A var total = 0;%0A $('.time').each(function(index) %7B%0A total += $(this).data('time');%0A %7D);%0A var time = moment.duration(%7Bs: total %7D);%0A var hours = ' hours ';%0A var minutes = '... |
62aea105261ae5e4b5026ba457bd99cf39706ab0 | Move extra log params under 'janus' namespace | lib/global/log4js-layout-json.js | lib/global/log4js-layout-json.js | var _ = require('underscore');
var layouts = require('log4js').layouts;
var sprintf = require("sprintf-js").sprintf;
var stringify = require('json-stringify-safe');
var NestedError = require('nested-error-stacks');
var isPlainObject = require('is-plain-object');
var Log4jsJsonLayout = {
process: function(logEvent) {... | JavaScript | 0.000001 | @@ -1018,25 +1018,16 @@
return
-_.extend(
%7Bmessage
@@ -1039,18 +1039,24 @@
sage
-%7D
,
+ janus:
params
-)
+%7D
;%0A
|
c607a8ace2a780542eebb36fb30d9549641a964d | remove extra space | mu-trees/addon/resolvers/glimmer-wrapper/index.js | mu-trees/addon/resolvers/glimmer-wrapper/index.js | import { DEBUG } from '@glimmer/env';
import GlimmerResolver from '@glimmer/resolver/resolver';
import RequireJSRegistry from '../../module-registries/requirejs';
import GlobalsResolver from '@ember/application/globals-resolver';
import { dasherize } from '@ember/string';
function slasherize(dotted) {
return dotted.... | JavaScript | 0.000002 | @@ -2120,17 +2120,16 @@
function
-
(specifi
|
a031e0ae2115aa224dc2bc71d7ee8c0e9b601097 | refactor VariableInstruction.var --> val | src/core/jvm/instructions/VariableInstruction.js | src/core/jvm/instructions/VariableInstruction.js | import * as _ from 'lodash';
const AbstractInstruction = require('./AbstractInstruction');
const ImmediateByteInstruction = require('./ImmediateByteInstruction');
export default class VariableInstruction extends AbstractInstruction {
constructor(instruction) {
super(instruction.idx, instruction.opcode);
th... | JavaScript | 0 | @@ -526,17 +526,17 @@
get va
-r
+l
() %7B%0A
|
b625f6534d2a0df0a5bacce1f6bb740a5e59eac3 | Add support for data-event-key attribute to avoid polluting standard attributes and be more explicit | lib/helpers/getDomNodeProfile.js | lib/helpers/getDomNodeProfile.js | import { getDomNodePath } from './getDomNodePath';
export function getDomNodeProfile(el) {
return {
action: el.action,
class: el.className,
href: getElementProps(el, 'href'),
id: getElementProps(el, 'id'),
method: el.method,
name: el.name,
node_name: el.nodeName,
selector: getDomNodeP... | JavaScript | 0 | @@ -214,24 +214,78 @@
(el, 'id'),%0A
+ event_key: getElementProps(el, 'data-event-key'),%0A
method:
|
3a50f9e5abfee01f76dc39e688189421d33d4d86 | update few rules for linter | .eslintrc.js | .eslintrc.js | module.exports = {
'parserOptions': {
'ecmaVersion': 7
},
'extends': 'eslint:recommended',
'rules': {
'curly': ['error', 'all'],
'default-case': 'warn',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'eqeqeq': ['warn', 'always'],
'no-alert': 'error',
'no-caller': 'error',
'no-case... | JavaScript | 0.000001 | @@ -101,16 +101,39 @@
les': %7B%0A
+%09%09'no-console': 'off',%0A
%09%09'curly
@@ -1891,29 +1891,28 @@
-length': %5B'
-error
+warn
', %7B%0A%09%09%09'min
|
243aef1cb2c69a044e6cb6dd5e66f21ce3bca19e | Fix after hours change | school/countdown.js | school/countdown.js | (function() {
var el = document.getElementById('countdown'),
endDate = new Date('March 30, 2012 18:10:00'),
curDate,
diff,
days,
hours,
minutes,
seconds,
tmp,
countdown,
pad = function(number) { return (number < 10 ? '0' : '') + Math.fl... | JavaScript | 0.000112 | @@ -106,9 +106,9 @@
12 1
-8
+7
:10:
|
6758becf56bcd4a1133d1f4d8dc98c51f5a9de6b | Fix frame atom in IE7/8 | javascript/atoms/frame.js | javascript/atoms/frame.js | // Copyright 2011 WebDriver committers
// Copyright 2011 Google 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/licenses/LICENSE-2.0
//
// Unless req... | JavaScript | 0.000021 | @@ -3873,200 +3873,278 @@
%7B%0A
-var domWindow = opt_root %7C%7C bot.getWindow();%0A%0A if (!bot.dom.isElement(element, goog.dom.TagName.FRAME) &&%0A !bot.dom.isElement(element, goog.dom.TagName.IFRAME)%0A ) %7B%0A return null;%0A %7D
+try %7B%0A var elementWindow = element.contentWindow;%0A %7D catc... |
29be08202eaeb04479fcf33971f05996e9db9f3f | Put data into staging first to test | lib/jobs/chicago-cta-bus-data.js | lib/jobs/chicago-cta-bus-data.js | var async = require( "async" );
var nomnom = require( "nomnom" );
var mongoose = require( "mongoose" );
var cta = require( "./chicago-cta" );
var utils = require( "../utils" );
var TransitStop = require( "../models" ).TransitStop;
var options = nomnom.option( "file", {
abbr: "f",
... | JavaScript | 0 | @@ -223,16 +223,88 @@
sitStop;
+%0Avar ChicagoCTABusStaging = require( %22../models%22 ).ChicagoCTABusStaging;
%0A%0Avar op
@@ -619,31 +619,289 @@
-TransitStop.remove( %7B%7D,
+var removeStagingStops = function ( seriesDone ) %7B%0A%0A ChicagoCTABusStaging.removeAll( function ( err ) %7B%0A%0A ... |
cf1d3e08f465da9b87d397716cf68fff5b51e352 | Move "comma-dangle" rule to "Stylistic Issues" section | .eslintrc.js | .eslintrc.js | module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
},
extends: 'eslint:recommended',
env: {
browser: false,
node: true,
},
globals: {
},
rules: {
/*** Possible Errors ***/
'comma-dangle': 0,
'no-console': 0,
'no-template-curly-in-string': 2,
/*** Best Pra... | JavaScript | 0 | @@ -217,31 +217,8 @@
*/%0A%0A
- 'comma-dangle': 0,%0A
@@ -789,24 +789,47 @@
elcase': 2,%0A
+ 'comma-dangle': 0,%0A
'eol-las
|
4b98c1b8f5eb0a135bbc3b10ec0a92129509985d | modify the number of times the chart refreshes to match the number of temperatures stored | public/javascripts/site.js | public/javascripts/site.js | $(document).ready(function(){
checkTemp();
getChartData();
});
function checkTemp() {
$.ajax({
url: '/api/current-temp',
success: function(data) {
$('#temp').text(data['current_temp'].toFixed(1));
}
});
setTimeout(checkTemp, 5000);
}
function getChartData() {
var date = new Date();
$.a... | JavaScript | 0.000001 | @@ -719,17 +719,18 @@
rtData,
-5
+60
000);%0A%7D%0A
|
79be3e6265afa57c970939a600f5c43f0c7c3300 | Revert "updating jquery nav plugin to add anchor url to URL bar after clicking. i actually do want to prevent default, but will find another way to update location URL" | javascripts/jquery.nav.js | javascripts/jquery.nav.js | /*
* jQuery One Page Nav Plugin
* http://github.com/davist11/jQuery-One-Page-Nav
*
* Copyright (c) 2010 Trevor Davis (http://trevordavis.net)
* Dual licensed under the MIT and GPL licenses.
* Uses the same license as jQuery, see:
* http://jquery.org/license
*
* @version 2.0
*
* Example usage:
* $('#nav').on... | JavaScript | 0 | @@ -4171,16 +4171,39 @@
;%0A%09%09%09%7D%0A%0A
+%09%09%09e.preventDefault();%0A
%09%09%7D,%0A%09%09%0A
|
1718fde34fe676a0b4625c9d73418e59af43e1a4 | Update .eslintrc.js | .eslintrc.js | .eslintrc.js | module.exports = {
parserOptions: {
ecmaVersion: 2019
},
env: {
es6: true,
mocha: true,
node: true
},
'extends': 'eslint:recommended',
rules: {
'brace-style': [2, '1tbs', { allowSingleLine: true }],
'comma-dangle': [2, 'never'],
'dot-notati... | JavaScript | 0 | @@ -60,10 +60,10 @@
: 20
-19
+20
%0A
|
cfbe0332ba232cce6fd374fd05f22a4102275a08 | Reset the loop counters before every render. | public/js/runner/runner.js | public/js/runner/runner.js | /** ============================================================================
* JS Bin Runner
* Accepts incoming postMessage events and updates a live iframe accordingly.
* ========================================================================== */
var runner = (function () {
var runner = {};
/**
* St... | JavaScript | 0 | @@ -2842,16 +2842,96 @@
%7D;%0A%0A
+ // Reset the loop protection before rendering%0A loopProtect.reset();%0A%0A
//
|
a7f789aaa2f53b8c5ce868e7b848568de955ab6f | Rename param | lib/launcher/launcher-factory.js | lib/launcher/launcher-factory.js | 'use strict'
const FactoryInterface = require('../factory-interface')
const ClusterFactory = require('../cluster/cluster-factory')
const ProcessExitListeners = require('./process-exit-listeners')
const SigintListener = require('./sigint-listener')
const SigtermListener = require('./sigterm-listener')
const UncaughtExc... | JavaScript | 0.000006 | @@ -554,22 +554,23 @@
create (
-server
+metrics
, logger
@@ -627,14 +627,15 @@
ate(
-server
+metrics
, lo
|
6532c4fe639d3d1a9c0c8fe8805ac9195db90a41 | Fix linter one more time | .eslintrc.js | .eslintrc.js | const error = 2;
const warn = 1;
const ignore = 0;
module.exports = {
root: true,
extends: [
'airbnb',
'plugin:jest/recommended',
'plugin:import/react-native',
'prettier',
'prettier/react',
],
plugins: ['prettier', 'jest', 'import', 'react', 'jsx-a11y', 'json'],
parser: 'babel-eslint',
... | JavaScript | 0 | @@ -2972,24 +2972,33 @@
files: %5B
+%0A
'**/react-na
@@ -3003,24 +3003,32 @@
native*/**',
+%0A
'**/REACT_N
@@ -3036,28 +3036,71 @@
TIVE
-*/**', '**/crna*/**'
+/**/.storybook/**',%0A '**/crna*/**/.storybook/**',%0A
%5D,%0A
|
ddf27d34eb435664591378d80c288b5c8d2ac052 | Allow template literals in .eslintrc.js | .eslintrc.js | .eslintrc.js | module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"installedESLint": true,
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
}... | JavaScript | 0.000001 | @@ -577,16 +577,61 @@
%22double%22
+,%0A %7B%22allowTemplateLiterals%22: true%7D
%0A
|
336623e670023acdf3352261a2c75a957962a185 | add configuration for ts-eslint | .eslintrc.js | .eslintrc.js | module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion... | JavaScript | 0 | @@ -12,18 +12,16 @@
rts = %7B%0A
-
%22env%22:
@@ -19,28 +19,24 @@
%0A %22env%22: %7B%0A
-
%22browser
@@ -48,20 +48,16 @@
ue,%0A
-
-
%22es6%22: t
@@ -60,27 +60,23 @@
%22: true%0A
-
%7D,%0A
-
-
%22extends
@@ -77,16 +77,22 @@
xtends%22:
+ %5B%0A
%22eslint
@@ -108,16 +108,64 @@
... |
78cbe6ed3475c453b95d5f8f4c6e6043b26fa014 | add delete for reset stats | lib/middleware/administration.js | lib/middleware/administration.js | /*
* Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of fiware-pep-steelskin
*
* fiware-pep-steelskin 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, either vers... | JavaScript | 0 | @@ -2442,16 +2442,306 @@
%7D);%0A%7D%0A%0A
+/**%0A * Reset the cache statistics%0A */%0Afunction resetCacheStats(req, res, next) %7B%0A cacheUtils.get().data.subservice.flushAll();%0A cacheUtils.get().data.roles.flushAll();%0A cacheUtils.get().data.user.flushAll();%0A cacheUtils.get().data.validation.flus... |
3b692f4e7b2ad743ce5d38ce2c1cb383c9161ad2 | Add line breaks for arrow funcs | .eslintrc.js | .eslintrc.js | module.exports = {
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},
plugins: [
'import',
'unicorn',
],
extends: ['airbnb-base', 'plugin:unicorn/recommended'],
rules: {
strict: 'off',
'no-unused-vars': ['... | JavaScript | 0.000022 | @@ -1142,24 +1142,77 @@
ne: true %7D%5D,
+%0A 'implicit-arrow-linebreak': %5B'error', 'beside'%5D,
%0A%0A 'paddi
|
59c7b0cb13f78ec3e2a774dbd08919523fc958fb | Allow { unused, ...rest } in ESLint rules | .eslintrc.js | .eslintrc.js | module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true,
"node": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"so... | JavaScript | 0.000106 | @@ -1105,16 +1105,44 @@
: %22none%22
+, %22ignoreRestSiblings%22: true
%7D%5D%0A %7D%0A%7D
|
e88a3aeb262cf9ba8314c9bc2ef78d6440351e8b | add ignoreRestSiblings to no-unused-vars | .eslintrc.js | .eslintrc.js | const path = require('path')
module.exports = {
env: {
es6: true,
amd: true,
browser: true
},
extends: [
'airbnb',
'prettier/react',
'plugin:jest/recommended',
'plugin:prettier/recommended',
'plugin:eslint-comments/recommended',
'plugin:promise/recommended'
],
parserOption... | JavaScript | 0.999993 | @@ -4204,16 +4204,23 @@
rror', %7B
+%0A
argsIgno
@@ -4234,16 +4234,153 @@
rn: '%5E_'
+,%0A%0A // allows %60const %7BpropIUse, propIDontUseButDontWantToPassOn, ...propsToPassOn%7D = this.props%60%0A ignoreRestSiblings: true%0A
%7D%5D,%0A
|
0b7ea42896623c23c82742d23f3f010e616ec604 | Fix no resolve on request error bug in news.js | src/news/news.js | src/news/news.js | 'use strict'
const request = require('request')
const newsUtils = require('../utils/news-utils')
const newsApiBaseUrl = 'https://newsapi.org/v1'
const apiKey = require('../api-keys').newsApiKey
const config = require('../../config.js')
var sources = require('./sources.json')
const news = {
/**
* Retrieves releva... | JavaScript | 0.000001 | @@ -938,21 +938,189 @@
tch(
-console.error
+error =%3E %7B%0A console.error(error)%0A pending--%0A if (pending === 0) %7B%0A resolve(articles.slice(0, config.maxArticlesPerTrend))%0A %7D%0A %7D
)%0A
@@ -1658,24 +1658,39 @@
ject(error)%0A
+ return%0A
... |
037d8eac11d0b6c9aadda56552764689ccd6c6eb | Fix DataTable JSDoc | src/components/DataTable/DataTable.js | src/components/DataTable/DataTable.js | import React from 'react'
// how many columns are visible when used within right sidebar
const COLLAPSED_COLUMNS_COUNT = 3
/**
* Returns an array of properties' keys to be used as table header
* @param {array} layer Array of layers
* @param {bool} isCollapsed If the table is collapsed (within right sidebar) or exp... | JavaScript | 0.000001 | @@ -204,52 +204,562 @@
am %7B
-a
+Object%7D layer - Layer data.%0A * @param %7BA
rray%7D
+%5B
layer
- Array of layers%0A * @param %7Bbool
+.table%5D - An array of strings specifying columns to be shown on the table. It can be undefined or not set.%0A * @param %7Bstring%7D %5Blayer.table%5B%5D%5D - A column name.%0A... |
f46b38733efee630ae9ede629f70421866a38975 | Compile empty print | src/transpiler/compiler.js | src/transpiler/compiler.js | /* eslint-disable */
import Parser from './parser';
class Compiler {
constructor(parsed) {
if (typeof parsed === 'string') {
parsed = new Parser(parsed).parse();
}
this.identionLevel = 0;
this.parsed = parsed;
this.compiled = "";
this.compile(this.parsed);
}
appendSpaces() {
console.log(this.ide... | JavaScript | 0.999975 | @@ -3395,24 +3395,41 @@
le.log(%22);%0A%0A
+%09%09if (values) %7B%0A%09
%09%09for (let v
@@ -3442,24 +3442,25 @@
f values) %7B%0A
+%09
%09%09%09this.comp
@@ -3463,32 +3463,37 @@
compile(value);%0A
+%09%09%09%7D%0A
%09%09%7D%0A%0A%09%09this.appe
|
fc36cbbb78577a2e6724217c2058db8162ff597c | Rename methods to avoid confusion with setPrompt() | src/node-plop.js | src/node-plop.js | import path from 'path';
import inquirer from 'inquirer';
import handlebars from 'handlebars';
import _get from 'lodash.get';
import resolve from 'resolve';
import bakedInHelpers from './baked-in-helpers';
import generatorRunner from './generator-runner';
function nodePlop(plopfilePath = '', plopCfg = {}) {
var pkg... | JavaScript | 0 | @@ -372,30 +372,30 @@
;%0A%0A%09let
-startingPrompt
+welcomeMessage
;%0A%09const
@@ -701,30 +701,30 @@
onst set
-StartingPrompt
+WelcomeMessage
= (mess
@@ -733,30 +733,30 @@
e) =%3E %7B
-startingPrompt
+welcomeMessage
= messa
@@ -1214,45 +1214,45 @@
get
-StartingPrompt = () =%3E startingPrompt
+WelcomeMessa... |
58d72c796f45eb199553c5bcb23cf8593bba6480 | clean up | tasks/download-adb-task.js | tasks/download-adb-task.js | var http = require('http')
, xmldoc = require('xmldoc')
, path = require('path')
, os = require('os')
, fs = require('fs')
, url = require('url')
, unzip = require('unzip')
, Progress = require('progress')
module.exports = function(grunt) {
var URL = 'http://dl-ssl.google.com/android/r... | JavaScript | 0.000001 | @@ -4,16 +4,18 @@
http
+
= requir
@@ -35,16 +35,18 @@
xmldoc
+
= requir
@@ -68,16 +68,18 @@
path
+
= requir
@@ -95,24 +95,26 @@
%0A , os
+
+
= require('o
@@ -124,24 +124,26 @@
%0A , fs
+
= require('f
@@ -153,24 +153,26 @@
%0A , url
+
+
= require('u
@@ -187,16 +187,18 @... |
6387a8cb3044a79481173afab59b1427d6be1f20 | Fix issue #22, change filenames with dashes to camelcase module names. | lib/jison/cli-wrapper.js | lib/jison/cli-wrapper.js | var JISON = require('../jison');
IO = require('./util/io');
exports.main = function (argv) {
var args = argv.slice(1);
if (args.length) {
var raw = IO.read(IO.join(IO.cwd(),args[0])),
name = IO.basename(args[0]).replace(/\..*$/g,''),
lex;
if (args[1]) {
... | JavaScript | 0 | @@ -958,16 +958,91 @@
e = name
+.replace(/-%5Cw/g, function (match)%7B return match.charAt(1).toUpperCase(); %7D)
;%0A%0A v
|
4dd664544204a88ad1d26dfc4318a2287fff45f7 | Debug js objectify | src/objectify.js | src/objectify.js | /**
* Form data into javascript object
* @author Jim Krayer <jameskrayer@yahoo.com>
* @version 0.1.0
* @param {object} $form jQuery form object
* @param {array} exclusions a list of field to exclude in the return, must
* match field name attribute
* @param {object} sanitize ... | JavaScript | 0.000011 | @@ -991,24 +991,101 @@
n object) %7B%0A
+ if (object%5Bkey%5D.nodeType !== 1) %7B continue; %7D //skip non-element nodes%0A
if (in
@@ -1698,17 +1698,19 @@
f(name)
-%3E
+===
-1%0A %7D)
|
ea354db682fdf19e1609006c33715edffd2a7d7a | add missing function | src/route/route-model.js | src/route/route-model.js | import isFunction from 'lodash/lang/isFunction';
import isString from 'lodash/lang/isString';
import RouteException from './route-exception';
function setDefaults(config) {
config.urls = [];
config.caseInsensitiveMatch = true;
config.reloadOnSearch = false;
config.resolve = {};
config.options = {};
}
var l... | JavaScript | 0.999066 | @@ -86,16 +86,61 @@
String';
+%0Aimport isObject from 'lodash/lang/isObject';
%0A%0Aimport
|
e65899b3dc4331e5628890ecfbd7412d48b48660 | add TODO to RadialGradient, replace mapping function with dot.Util.linear | js/util/RadialGradient.js | js/util/RadialGradient.js | // Copyright 2002-2013, University of Colorado
/**
* A radial gradient that can be passed into the 'fill' or 'stroke' parameters.
*
* SVG gradients, see http://www.w3.org/TR/SVG/pservers.html
*
* @author Jonathan Olson <olsonsjc@gmail.com>
*/
define( function( require ) {
'use strict';
var scenery = requ... | JavaScript | 0.000001 | @@ -2767,30 +2767,67 @@
);%0A %7D%0A
+%0A
+//TODO: replace with dot.Util.linear
%0A // ma
|
5680c02981eaafc1481cb6dd3adb3990cd81f8ab | remove no-longer-used 'inherits' function | jsio/env/node/csp/util.js | jsio/env/node/csp/util.js | /*
Helper functions, &c., for a comet server by Jacob Rus.
--------------------
Copyright (c) 2009 Jacob Rus
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including withou... | JavaScript | 0.003943 | @@ -2491,251 +2491,8 @@
%0A%7D%0A%0A
-var inherits = this.inherits = function (ctor, superCtor) %7B%0A%09var tempCtor = function()%7B%7D;%0A%09tempCtor.prototype = superCtor.prototype;%0A%09ctor.super_ = superCtor.prototype;%0A%09ctor.prototype = new tempCtor();%0A%09ctor.prototype.constructor = ctor;%0A%7D;%0A%0A
va... |
ce2d34d664d14c1af5bec29b638de4d962c3cc10 | Update selection wording | src/selection-handler.js | src/selection-handler.js | "use strict";
var _ = require('./lodash');
var Dom = require('./packages/dom');
var SelectionHandler = function(wrapper, mediator, editor) {
this.wrapper = wrapper;
this.mediator = mediator;
this.editor = editor;
this.options = editor.options;
this.startIndex = this.endIndex = 0;
this.selecting = false;
... | JavaScript | 0 | @@ -3308,37 +3308,38 @@
move: function(
-index
+offset
) %7B%0A this.sta
@@ -3349,37 +3349,38 @@
this.endIndex +
-index
+offset
);%0A %7D,%0A%0A onMou
@@ -3576,21 +3576,22 @@
expand(
-index
+offset
) %7B%0A
@@ -3618,21 +3618,22 @@
Index +
-index
+offset
);%0A %7D,%0A
|
f0f983fa56be8a276307c4ca7b6d80ae4b9ebd61 | solve print css problem | jxjs/WebContent/js/api.js | jxjs/WebContent/js/api.js | /**
* common api
*/
var print;
var exports;
/**
* get root path
*/
function getRootPath() {
var curWwwPath = window.document.location.href;
var pathName = window.document.location.pathname;
var pos = curWwwPath.indexOf(pathName);
var localhostPath = curWwwPath.substring(0, pos);
var projectN... | JavaScript | 0.010636 | @@ -623,54 +623,143 @@
yle%3E
-@media print%7B.no-print%7Bdisplay:none;%7D.no-wrap%7B
+' +%0D%0A %09%09%09'@media print%7B' +%0D%0A %09%09%09%09'.no-print%7B' + %0D%0A %09%09%09%09%09'display:none;' + %0D%0A %09%09%09%09'%7D' + %0D%0A %09%09%09%09'.no-wrap%7B' + %0D%0A %09%09%09%09%09'
word
@@ -766,... |
3a032159d0b7b90550c5964c8cb6f046292702cd | update obo links and curl command to follow redirects | ontologies/populate.js | ontologies/populate.js | #!/usr/bin/env node
var http = require('http')
, fs = require('fs')
, exec = require('child_process').exec
, collections = require('gramene-mongodb-config')
, argv = require('minimist')(process.argv.slice(2));
var ontologies = [
{
collectionName: 'GO',
obo: 'http://www.berkeleybop.org/ontologies/go.... | JavaScript | 0 | @@ -283,38 +283,31 @@
p://
-www.berkeleybop.org/ontologies
+purl.obolibrary.org/obo
/go.
@@ -385,38 +385,31 @@
p://
-www.berkeleybop.org/ontologies
+purl.obolibrary.org/obo
/po.
@@ -493,38 +493,31 @@
p://
-www.berkeleybop.org/ontologies
+purl.obolibrary.org/obo
/ncb
@@ -1381,16 +1381,19 @@
= 'curl
+-L
'+ontol... |
0547fd9c5dafdb54bbf5cbb692345dbe73ed064b | use rewrite-ext in path plugin | lib/plugins/dest-path.js | lib/plugins/dest-path.js | 'use strict';
/**
* Module dependencies.
*/
var path = require('path');
var gutil = require('gulp-util');
var through = require('through2');
var parsePath = require('parse-filepath');
var utils = require('../utils');
var _ = require('lodash');
/**
* ## Dest path plugin
*
* Assemble plugin to calcuate the desti... | JavaScript | 0.000001 | @@ -177,24 +177,62 @@
filepath');%0A
+var rewrite = require('rewrite-ext');%0A
var utils =
@@ -864,24 +864,15 @@
t =
-utils.replaceExt
+rewrite
(act
|
23c1077ab2817fd17dc60bf4472fcc4716b21770 | handle error | lib/redux/epics/error.js | lib/redux/epics/error.js | 'use babel';
/* @flow*/
import { Observable } from 'rxjs';
import { ERROR } from '../actions';
export default function error(action$: Observable) {
return action$.ofType(ERROR)
.map(action => console.log(action))
.catch(err => Observable.of(console.error(err)));
}
| JavaScript | 0.000002 | @@ -184,41 +184,135 @@
.
-m
+switchM
ap(
+(
action
+)
=%3E
-console.log(action)
+%7B%0A console.error(action.errorMessage);%0A atom.notifications.addError(action.errorMessage);%0A %7D
)%0A
|
126e118694bb54064661199023a8b89bd39f6c19 | Add safety check to the search algorithm | src/util/getBreakpoints.js | src/util/getBreakpoints.js | /**
* Returns the value found in obj at path. Delegates to obj.getIn if available.
* @param obj
* @param path
* @returns {*}
*/
function getIn(obj, path) {
if (obj.getIn) {
return obj.getIn(path)
}
return path.reduce((accum, next) => accum[next], obj)
}
/**
* Returns all keys of an object. De... | JavaScript | 0.000001 | @@ -965,24 +965,54 @@
urrentPath)%0A
+ if (currentObj) %7B%0A
if (
@@ -1029,24 +1029,28 @@
%5Bmarker%5D) %7B%0A
+
@@ -1068,32 +1068,36 @@
entPath%0A
+
%7D%0A queue.
@@ -1090,16 +1090,20 @@
+
+
queue.pu
@@ -1158,16 +1158,26 @@
at(k)))%0A
+ ... |
e064c9b96c1b21de33078573cdbeca5350af853d | Remove unnecessary code | src/util/initialization.js | src/util/initialization.js | const config = require('../config.js')
const storage = require('./storage.js')
const checkGuild = require('./checkGuild.js')
const dbOpsGuilds = require('./db/guilds.js')
const dbOpsFailedLinks = require('./db/failedLinks.js')
const dbOpsBlacklists = require('./db/blacklists.js')
const dbOpsSchedules = require('./db/sc... | JavaScript | 0.001341 | @@ -573,488 +573,8 @@
js')
-%0Aconst FAIL_LIMIT = config.feeds.failLimit%0A%0Afunction reachedFailCount (link, failedLinks) %7B%0A const failed = typeof failedLinks%5Blink%5D === 'string' %7C%7C (typeof failedLinks%5Blink%5D === 'number' && failedLinks%5Blink%5D %3E= FAIL_LIMIT) // string indicates it has reached the... |
38ba0923ef7eb8fa49aa9e61bab45df5f759000b | fix tests | tests/main-test.js | tests/main-test.js | import test from 'ava';
import childProcess from 'child_process';
import pify from 'pify';
const exec = pify(childProcess.exec);
test('shows help on --help', async t => {
const stdout = await exec('../bin/main.js --help');
t.is(stdout.trim(), `Usage: main [options] [command]
Commands:
init [name] ... | JavaScript | 0.000001 | @@ -198,34 +198,34 @@
t exec('../bin/m
-ai
+er
n.js --help');%0A
@@ -248,34 +248,34 @@
rim(), %60Usage: m
-ai
+er
n %5Boptions%5D %5Bcom
@@ -773,18 +773,18 @@
../bin/m
-ai
+er
n.js --h
@@ -823,18 +823,18 @@
Usage: m
-ai
+er
n %5Boptio
|
a99ac68dad345b5ff41482eebd7c998cbafbcce4 | Add todo for tests | tests/main.spec.js | tests/main.spec.js | describe('main', function () {
var scope, $compile;
var element;
beforeEach(module('ui.nestedSortable'));
beforeEach(inject(function ($rootScope, _$compile_) {
scope = $rootScope;
$compile = _$compile_;
element = angular.element('<ol ui-nested-sortable="options" ng-model="lis... | JavaScript | 0 | @@ -232,16 +232,113 @@
pile_;%0A%0A
+ // TODO: move test element + data to a generic module so we can reuse it for other tests%0A
|
dbc6c1d6e5057840aabc5df402a0dd8312a0c312 | Load string comparison algorithm from config | src/utils/chooseBestUrl.js | src/utils/chooseBestUrl.js | // utils -> chooseBestURL
import {
slugify,
} from 'bellajs';
import stringComparision from 'string-comparison';
import {
error,
} from './logger';
export default (candidates = [], title) => {
let theBest = candidates.reduce((prev, curr) => {
return curr.length < prev.length ? curr : prev;
}, candidate... | JavaScript | 0.000001 | @@ -107,24 +107,69 @@
mparison';%0A%0A
+import %7BgetParserOptions%7D from '../config';%0A%0A
import %7B%0A e
@@ -384,18 +384,107 @@
const
-ls
+opts = getParserOptions();%0A const alg = opts%5B'urlsCompareAlgorithm'%5D;%0A const comparer
= strin
@@ -499,21 +499,15 @@
sion
-.levenshtein;
+%5Balg%5D;%0A
... |
e20ab6f9e79371d11faea7fb198eff09ef2a2fc6 | remove mixin show test | tests/show-test.js | tests/show-test.js | 'use strict';
var test = require('tape');
var show = require('../lib/commands/show');
test('Test show function', function (t) {
t.equal(show(), undefined, 'Not a command. Try sassysass show <modules, themes, layout, mixins>');
t.equal(show('modules'), undefined, 'Pass - Show modules working');
t.equal(show('mixi... | JavaScript | 0 | @@ -287,32 +287,34 @@
es working');%0A
+//
t.equal(show('mi
|
a02ba7f57cd32f383b619f701d2b551894d089c9 | Fix #384: config file option is ignored | lib/tasks/read-config.js | lib/tasks/read-config.js | var Task = require('ember-cli/lib/models/task');
var Promise = require('ember-cli/lib/ext/promise');
var SilentError = require('silent-error');
var existsSync = require('fs').existsSync;
var path = require('path');
var dotenv = require('dotenv');
module.exports = Task.extend({
init: function... | JavaScript | 0.000014 | @@ -613,20 +613,20 @@
oyConfig
-Path
+File
%7C%7C 'con
|
5687a858d51ea49343b14bb8b791c83e0b6059d1 | adds another c to words that end in c | lib/transformers/ccfy.js | lib/transformers/ccfy.js | module.exports = text => {
var result = ''
var exploded = text.split(' ')
exploded.forEach(w => {
if (w.length > 1 && !w.endsWith('h')) {
var m = 2
if (w.endsWith('est')) m = 5
if (w.endsWith('en') || w.endsWith('er')) m = 4
var c = w[w.length - m]
if (c === 'c') {
resul... | JavaScript | 0.993211 | @@ -423,44 +423,169 @@
re
-turn%0A %7D%0A %7D%0A result += w +
+sult += result.endsWith('c') ? 'c' : result.endsWith('C') ? 'C' : ''%0A return%0A %7D%0A %7D%0A result += w.endsWith('c') ? %22c %22 : w.endsWith('C') ? %22C %22 :
%22 %22
|
8a2c6adafc2d1c938f5868db14598f8412c033c0 | set apiVersion from wpcom property | lib/util/send_request.js | lib/util/send_request.js |
/**
* Module dependencies
*/
var debug = require('debug')('wpcom:send-request');
/**
* Request to WordPress REST API
*
* @param {String|Object} params
* @param {Object} [query]
* @param {Object} [body]
* @param {Function} fn
* @api private
*/
module.exports = function (params, query, body, fn) {
// `par... | JavaScript | 0 | @@ -1002,24 +1002,80 @@
apiVersion;%0A
+ %7D else %7B%0A params.apiVersion = this.apiVersion;%0A
%7D%0A %7D%0A%0A
|
d20f5d58cb6159cd063f8de4e90ad6166c23a443 | add configuration of aggressiveness to `RegExp` constructor | packages/core-js/modules/es.regexp.constructor.js | packages/core-js/modules/es.regexp.constructor.js | var global = require('../internals/global');
var inheritIfRequired = require('../internals/inherit-if-required');
var defineProperty = require('../internals/object-define-property').f;
var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;
var isRegExp = require('../internals/is-regexp');
va... | JavaScript | 0.000001 | @@ -1,45 +1,214 @@
var
-global = require('../internals/global
+DESCRIPTORS = require('../internals/descriptors');%0Avar MATCH = require('../internals/well-known-symbol')('match');%0Avar global = require('../internals/global');%0Avar isForced = require('../internals/is-forced
');%0A
@@ -578,24 +578,67 @@
redefine');... |
147a64e50342f6059ba58b371348af83b68bac86 | Fix timers init | lib/visibility.timers.js | lib/visibility.timers.js | /*
* Copyright 2012 Andrey “A.I.” Sitnik <andrey@sitnik.ru>,
* sponsored by Evil Martians.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (... | JavaScript | 0.000024 | @@ -2252,24 +2252,55 @@
callback) %7B%0A
+ this._initTimers();%0A%0A
if
@@ -2708,38 +2708,8 @@
);%0A%0A
- this._initTimers();%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.