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 |
|---|---|---|---|---|---|---|---|
2e4c5c76638de5abf18458bfb7ae57ed104c1683 | remove failing test | frontend/src/components/RoomCard/RoomCard.test.js | frontend/src/components/RoomCard/RoomCard.test.js | test('It is hello world!', () => {
expect('hello world!').toBe('hello world!');
});
test('It is failing', () => {
expect('hello world!').toBe('not hello world!');
}); | JavaScript | 0.000091 | @@ -83,89 +83,4 @@
%7D);%0A
-%0Atest('It is failing', () =%3E %7B%0A expect('hello world!').toBe('not hello world!');%0A%7D);
|
2b549dbe5dacd391981854c2f18b2e18108c6af7 | make CountDays provide correct array | src/helpers/day-counter.js | src/helpers/day-counter.js | const countDays = (startDate, endDate) => {
console.log({startDate, endDate});
const yearInDays = []
let currentDate = startDate
console.log({currentDate, 'typeof': typeof currentDate});
// let currentDate = new Date()
while (currentDate <= endDate) {
yearInDays.push(currentDate)
currentDate... | JavaScript | 0.005482 | @@ -42,46 +42,8 @@
%7B%0D%0A
- console.log(%7BstartDate, endDate%7D);%0D%0A
co
@@ -100,76 +100,50 @@
%0D%0A
-console.log(%7BcurrentDate, 'typeof': typeof current
+// let currentDate = new
Date
-%7D);
+()
%0D%0A
-// let
+while (
curr
@@ -150,39 +150,35 @@
entDate
+%3C
=
-new
+end
Date
-(
)
+ %7B
... |
1f033d217c9875f5882dc877f1fd834fe96a5a51 | Update parameter labels | cd/src/pipeline-events-handler/deltas/deltas.js | cd/src/pipeline-events-handler/deltas/deltas.js | const getStackFamily = require('./stack-family');
const getChangeSetFamily = require('./change-set-family');
const deltaArrow = require('./delta-arrow');
const deltaValue = require('./delta-value');
/**
* Returns a multi-line string describing the parameters that have changed
* @param {ParameterDeltas} deltas
* @re... | JavaScript | 0.000001 | @@ -1745,46 +1745,576 @@
-return %60*$%7Bd.stackName%7D::$%7Bd.parameter
+let label;%0A%0A if (%0A %5B%0A 'infrastructure-cd-root-staging',%0A 'infrastructure-cd-root-production',%0A %5D.includes(d.stackName)%0A ) %7B%0A // For root stack parameters, ... |
037144d8a3e856a83b0a5d26e35c234d75856c83 | Remove onOffSwitch check from rule summarizing | static/js/rules/Rule.js | static/js/rules/Rule.js | /**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.*
*/
/* global API */
/**
* Model of a Rule loaded from the Rules Engine
* @constructor
* @param {Gateway} ga... | JavaScript | 0 | @@ -3621,50 +3621,8 @@
'on'
- &&%0A effectThing.type === 'onOffSwitch'
) %7B%0A
|
297dadc8b74ec5649704c2f42f390412862b05a2 | Update TeamEditPageModelView.js | app/scripts/TeamEditPage/TeamEditPageModelView.js | app/scripts/TeamEditPage/TeamEditPageModelView.js | /* TeamEditPage */
(function(module, sstt) {
module.ModelView = Backbone.View.extend({
template: JST['app/scripts/TeamEditPage/TeamEditPageTpl.ejs'],
events: {
"click #watchers": "showWatchers",
"click #developers": "showDevelopers",
... | JavaScript | 0.000001 | @@ -939,21 +939,23 @@
his.show
-Watch
+Develop
ers();%0A%0A
@@ -1120,223 +1120,775 @@
-%7D,%0A%0A showDevelopers: function() %7B%0A mediator.pub(%22TeamEditPage:RoleSetUp%22, %22developer%22);%0A %7D,%0A%0A showTeachLeads: function() %7B%0A mediator.pub(%22TeamEditPage... |
b85bd0b1a6dff515713b611b2745de283d56aa8a | fix battle pets total | app/scripts/controllers/application.controller.js | app/scripts/controllers/application.controller.js | 'use strict';
(function() {
angular
.module('simpleArmoryApp')
.controller('ApplicationCtrl' , ApplicationCtrl);
function ApplicationCtrl($scope, LoginService, $location, $filter) {
// default to not logged in
$scope.isLoggedIn = false;
// Listen for path changed and... | JavaScript | 0 | @@ -1604,10 +1604,10 @@
urn
-%22%22
+''
;%0A
@@ -1610,32 +1610,33 @@
;%0A %7D%0A
+%0A
%0A
@@ -1631,16 +1631,225 @@
+var perc = $scope.percent(n, d);%0A%0A // if the percentage is low enough, don't print the numbers, just use the percentage%0A if (perc %3C... |
d2457d8a3fd797332332bd50a6fb2044c66a203a | Fix MediaKeys with new mpris API MediaKeys code only works for Mate and older version of gnome All OSs using gnome3 use MPRIS to send mediakey shortcuts | linux/lib/registerMediaKeys.js | linux/lib/registerMediaKeys.js | const DBus = require('dbus-next');
const debug = require('debug');
const { ipcMain } = require('electron');
const logger = debug('headset:mediaKeys');
let track = null;
ipcMain.on('win2Player', (e, args) => {
if (args[0] === 'trackInfo') {
track = args[1];
}
});
function executeMediaKey(win, key) {
logger... | JavaScript | 0 | @@ -1094,11 +1094,8 @@
ace,
- n,
key
|
1294e4c335e1b006a0b718a1795b0bd92f66be84 | rename tests folder to test | local/config/src/playwright.js | local/config/src/playwright.js | const { devices } = require('@playwright/test');
module.exports = {
testMatch: /.*\/tests\/playwright\/.*\.test\.[jt]sx?/,
timeout: 10 * 60 * 1500,
navigationTimeout: 1000,
retries: 0,
maxFailures: 0,
workers: 4,
fullyParallel: true,
reporter: 'list',
projects: [
{
name: 'Chromium',
u... | JavaScript | 0.000001 | @@ -84,17 +84,16 @@
.*%5C/test
-s
%5C/playwr
|
9894125e223eb2f13948cf1ef4fa970187dc69e1 | update typo | problems/003_longest-substring-without-repeating-characters/index.js | problems/003_longest-substring-without-repeating-characters/index.js | /**
* @param {string} s
* @return {number}
*/
var lengthOfLongestSubstring = function(s) {
var maxLen = 0, numArr = [], index;
for (var i = 0; i < s.length; i++) {
index = numArr.indexOf(s[i]);
if (index !== -1) {
numArr = numArr.slice(index + 1, numArr.length);
}
numArr.push(s[i]);
max... | JavaScript | 0.000004 | @@ -105,19 +105,19 @@
en = 0,
-num
+sub
Arr = %5B%5D
@@ -176,19 +176,19 @@
index =
-num
+sub
Arr.inde
@@ -232,20 +232,20 @@
-num
+sub
Arr =
-num
+sub
Arr.
@@ -261,19 +261,19 @@
ex + 1,
-num
+sub
Arr.leng
@@ -287,19 +287,19 @@
%7D%0A
-num
+sub
Arr.push
@@ -319,19 +319,19 @@
axLen =
-num
+sub
... |
02c62c48f437a4c873e4dc1cebfe41ac418be7cd | Fix the "reloaded" link on about:net-internals. | chrome/browser/resources/net_internals/index.js | chrome/browser/resources/net_internals/index.js | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
<include src="util.js"/>
<include src="view.js"/>
<include src="tab_switcher_view.js"/>
<include src="data_view.js"/>
<include src="http_cache_view.js... | JavaScript | 0.002524 | @@ -1228,24 +1228,29 @@
, function (
+event
) %7B%0A hist
@@ -1260,16 +1260,44 @@
.go(0);%0A
+ event.preventDefault();%0A
%7D);%0A
|
2c01ff1c4d344d50254edbdb8ea87f46a2fbb1f6 | fix missing slugify (bug 1049858) | src/media/js/app_selector.js | src/media/js/app_selector.js | define('app_selector',
['jquery', 'format', 'l10n', 'log', 'requests', 'settings', 'templates', 'underscore', 'urls', 'utils', 'utils_local', 'z'],
function($, format, l10n, log, requests, settings, nunjucks, _, urls, utils, utils_local, z) {
'use strict';
var gettext = l10n.gettext;
var results_ma... | JavaScript | 0.000015 | @@ -127,23 +127,8 @@
ls',
- 'utils_local',
'z'
@@ -214,21 +214,8 @@
ils,
- utils_local,
z)
@@ -1749,22 +1749,16 @@
al(utils
-_local
.slugify
|
03fa8cdfd45a30ed1282b1e161690a13b405088f | Update wrapper example with Cycle Streams | rx-run/examples/synthetic-examples/wrapper-custom-element/wrapper.js | rx-run/examples/synthetic-examples/wrapper-custom-element/wrapper.js | var h = Cycle.h;
var Rx = Cycle.Rx;
Cycle.registerCustomElement('wrapper-element', function (user, props) {
var view = Cycle.createView(function (props) {
return {
vtree$: props.get('children$').map(function (children) {
return h('div.wrapper', {style: {backgroundColor: 'lightgray'}}, children);
... | JavaScript | 0 | @@ -87,20 +87,25 @@
nction (
-user
+rootElem$
, props)
@@ -110,27 +110,29 @@
s) %7B%0A var v
-iew
+tree$
= Cycle.cre
@@ -126,36 +126,38 @@
$ = Cycle.create
-View
+Stream
(function (props
@@ -151,21 +151,25 @@
nction (
-props
+children$
) %7B%0A
@@ -179,35 +179,8 @@
urn
-%7B%0A vtree$: props.get('
... |
8b431fa6169dfb1eb2d34fcc930590fb35a16b39 | fix rees error | src/integrations/REES46.js | src/integrations/REES46.js | import { getProp } from 'driveback-utils/dotProp';
import {
getEnrichableVariableMappingProps,
extractVariableMappingValues,
} from '../IntegrationUtils';
import Integration from '../Integration';
import {
VIEWED_PAGE,
VIEWED_PRODUCT_DETAIL,
VIEWED_PRODUCT_LISTING,
ADDED_PRODUCT,
REMOVED_PRODUCT,
COMPL... | JavaScript | 0.000001 | @@ -1,16 +1,71 @@
+import cleanObject from 'driveback-utils/cleanObject';%0A
import %7B getProp
|
abeef0c40074cffa1735736bb29eb6870bd2d712 | Fix fab initialization | mithril/components/fab.js | mithril/components/fab.js |
v.component.fab = {
oninit: (vnode) => {
vnode.state.onclick = (e) => {
vnode.attrs.fab.onclick(e)
}
},
oncreate: (vnode) => {
var fab = mdc.ripple.MDCRipple.attachTo(vnode.dom)
},
view: (vnode) => [
(v.state.admin || null) &&
m('button.mdc-fab material-icons v-fab', {
onclick... | JavaScript | 0.000104 | @@ -137,24 +137,47 @@
vnode) =%3E %7B%0A
+ if (vnode.dom) %7B%0A
var fab
@@ -219,16 +219,22 @@
de.dom)%0A
+ %7D%0A
%7D,%0A v
|
606339ed3e3a8e511f0cfb9ff94aac8a28c17cee | fix opening the settings (opens overview for now) | randomwallpaper@iflow.space/randomWallpaperMenu.js | randomwallpaper@iflow.space/randomWallpaperMenu.js | const GLib = imports.gi.GLib;
const Shell = imports.gi.Shell;
//self
const Self = imports.misc.extensionUtils.getCurrentExtension();
const LoggerModule = Self.imports.logger;
const Timer = Self.imports.timer;
// UI Imports
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
const CustomEle... | JavaScript | 0 | @@ -3045,16 +3045,122 @@
() =%3E %7B%0A
+%09%09%09// Fixme: opens the settings overview in 3.36 where you have to select the correct extension yourself.%0A
%09%09%09// ca
@@ -3260,29 +3260,27 @@
pp(%22
+org.
gnome
--shell-e
+.E
xtension
-pre
@@ -3279,13 +3279,8 @@
sion
--pref
s.de
@@ -3288,16 +3288,17 @@
ktop%... |
9bf26ec5776b64b645ed7ee7a5d46837d0a3a8ca | fix lang.js | src/interface/lang/lang.js | src/interface/lang/lang.js | var translations = require('./translations')
var mustache = require('mustache')
var EventEmitter = require('events').EventEmitter
var inherits = require('inherits')
inherits(Lang, EventEmitter)
function Lang () {
var self = this
if (!(self instanceof Lang)) return new Lang()
var langLocale = navigator.languag... | JavaScript | 0.998545 | @@ -938,22 +938,20 @@
%0A
-return (typeof
+var lookup =
tra
@@ -975,79 +975,38 @@
ng%5D
-!= 'undefined') ? mustache.render(translations%5Bself.lang%5D%5Bkey%5D, data) :
+%7C%7C translations%5B'en'%5D%0A return
mus
@@ -1018,16 +1018,31 @@
.render(
+lookup%5Bkey%5D %7C%7C
translat
|
26f5653882e714bb04935e6ad745cdfafb8e371d | update comments to match change to ensureAsync | mocha_test/ensureAsync.js | mocha_test/ensureAsync.js | var async = require('../lib');
var expect = require('chai').expect;
describe('ensureAsync', function() {
var passContext = function(cb) {
cb(this);
};
it('should propely bind context to the wrapped function', function(done) {
// call bind after wrapping with initialParams
var context = {... | JavaScript | 0 | @@ -275,37 +275,35 @@
apping with
-initialParams
+ensureAsync
%0D%0A var co
@@ -659,21 +659,19 @@
ith
-initialParams
+ensureAsync
%0D%0A
|
f811b7b82a80dff1e0ea024991f002c355cd7380 | add contraint/overlap members to eventdef | src/models/EventDefinition.js | src/models/EventDefinition.js |
var EventDefinition = Class.extend({
source: null,
id: null,
title: null,
rendering: null,
miscProps: null,
constructor: function() {
this.miscProps = {};
},
buildInstances: function(start, end) {
// subclasses must implement
},
clone: function() {
var copy = new this.constructor();
copy.sour... | JavaScript | 0 | @@ -90,16 +90,51 @@
: null,%0A
+%09constraint: null,%0A%09overlap: null,%0A
%09miscPro
@@ -449,16 +449,84 @@
dering;%0A
+%09%09copy.constraint = this.constraint;%0A%09%09copy.overlap = this.overlap;%0A
%09%09copy.m
@@ -1309,16 +1309,88 @@
%7C%7C null;
+%0A%09def.constraint = rawProps.constraint;%0A%09def.overlap =... |
261965ccbf33393ebbe46cafeff3d999b135999a | Fix proptype warning when setting label={false} on an input | src/js/components/label.js | src/js/components/label.js | import React from 'react'
import { sizeClassNames } from '../util.js'
import cx from 'classnames'
export default class Label extends React.Component {
static displayName = 'FriggingBootstrap.Label'
static propTypes = {
labelWidth: React.PropTypes.object.isRequired,
layout: React.PropTypes.string.isRequire... | JavaScript | 0.000329 | @@ -449,16 +449,92 @@
lement,%0A
+ React.PropTypes.bool, // can set label=%7Bfalse%7D to not show a label%0A
%5D),%0A
|
8b26888fedfbf5a851e70b227a35df5e7f679471 | Mejora instapago & processPayment | instapago.js | instapago.js | 'use strict';
import { axios as http } from 'axios';
function instapago({keyId, publicKeyId, strict = true}) {
if (!keyId || !publicKeyId) {
throw new Error('Los parámetos keyId y publicKeyId son requerido');
} else if (typeof keyId !== 'string' || typeof publicKeyId !== 'string') {
throw new Error('Los p... | JavaScript | 0 | @@ -67,17 +67,16 @@
stapago(
-%7B
keyId, p
@@ -100,17 +100,16 @@
t = true
-%7D
) %7B%0A if
@@ -160,32 +160,33 @@
ror('Los par%C3%A1met
+r
os keyId y publi
@@ -205,16 +205,18 @@
equerido
+s.
');%0A %7D
@@ -320,16 +320,17 @@
par%C3%A1met
+r
os keyId
@@ -389,16 +389,42 @@
fig = %7B%0A
+ strict,%0A key... |
7674e1a4be3ed16a7318e6c22e9cd3cf674fdef0 | add method to get width of scrollbar | src/js/global-scrollbar.js | src/js/global-scrollbar.js | /* to define width of scrollbar */
;(function ($, _, undefined)
{
'use strict';
_.globalScrollbar = {
prop: 'margin',
side: 'right',
selector: '.js-scrollbar-offset',
_hidden: false,
_width: 0,
_prevOverflow: '',
_prevMargin: '',
_num: 0,
_first: true,
hide: function (_call... | JavaScript | 0 | @@ -601,56 +601,19 @@
h =
-Math.round(window.innerWidth - nHTML.clientWidth
+this.width(
),%0D%0A
@@ -2472,16 +2472,130 @@
%0D%0A%09%09%09%7D%0D%0A
+%09%09%7D,%0D%0A%09%09width: function ()%0D%0A%09%09%7B%0D%0A%09%09%09return Math.round(window.innerWidth - document.documentElement.clientWidth);%0D%0A
%09%09%7D%0D%... |
424687e47bd17b8966e8bd0cf978ccf96be3d5f4 | Fix mts filters | src/modules/postgres/query.js | src/modules/postgres/query.js |
import * as pg from '../../lib/pg';
import { TABLES, TYPES } from '../../lib/schema';
const MAX_LIMIT = 1024;
const operators = {
gt: '>',
lt: '<',
in: 'IN',
neq: '<>',
gte: '>=',
lte: '<=',
cts: '@>',
ctd: '<@',
mts: '@@'
};
function getPropOp(prop) {
const i = prop.lastIndexOf('_');
if (i > 0) {
ret... | JavaScript | 0.000001 | @@ -228,10 +228,12 @@
s: '
-@@
+like
'%0A%7D;
|
23f89401afc33fe4fc275c166b52f1763755838d | fix #9 new article page is not working due to null state | resources/assets/js/common/wysiwyg-editor/index.js | resources/assets/js/common/wysiwyg-editor/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { EditorState, convertToRaw, ContentState, convertFromHTML } from 'draft-js'
import { Editor } from 'react-draft-wysiwyg'
import draftToHtml from 'draftjs-to-html'
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
class WYSIWYG... | JavaScript | 0 | @@ -438,27 +438,25 @@
quired,%0A %7D%0A
-
%0A
+
constructo
@@ -483,21 +483,17 @@
(props)%0A
-
%0A
+
this
@@ -577,21 +577,17 @@
,%0A %7D%0A
-
%0A
+
this
@@ -649,18 +649,16 @@
is)%0A %7D%0A
-
%0A conve
@@ -677,24 +677,29 @@
orState(
+value
) %7B%0A
const %7B
@@ -694,41 +694,... |
9f9f654c60f7790683e227e3c66a0b7b0e678700 | Set player actions status | integrate.js | integrate.js | /*
* Copyright 2014 Your name <your e-mail>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following di... | JavaScript | 0.000001 | @@ -2199,57 +2199,34 @@
%0A%0A
-// Extract data from the web page%0A WebApp.update
+WebApp._isHiddenOrDisabled
= f
@@ -2228,28 +2228,29 @@
d = function
-()%0A
+ (el)
%7B%0A var h
@@ -2252,142 +2252,196 @@
var
-hasClass = function (el, cls) %7B%0A return el && el.className && new RegExp(%22(%5C%5Cs%7... |
bec3a3b6987a71ab1d07331b7367be9156cbf538 | define router property in NavigationInstruction | src/navigation-instruction.js | src/navigation-instruction.js | interface NavigationInstructionInit {
fragment: string,
queryString: string,
params : Object,
queryParams: Object,
config: RouteConfig,
parentInstruction: NavigationInstruction,
previousInstruction: NavigationInstruction,
router: Router,
options: Object
}
export class CommitChangesStep {
run(naviga... | JavaScript | 0.000001 | @@ -1346,16 +1346,73 @@
: any;%0A%0A
+ /**%0A * The router instance.%0A */%0A router: Router;%0A%0A
plan:
|
b16b4771812102abfb1ef09a9611175bf0187999 | use `MouseEvent.button` instead of `event.which` (#270) | src/js/page/ui/pan-zoom.js | src/js/page/ui/pan-zoom.js | function getXY(obj) {
return {
x: obj.pageX,
y: obj.pageY
};
}
function touchDistance(touch1, touch2) {
const dx = Math.abs(touch2.x - touch1.x);
const dy = Math.abs(touch2.y - touch1.y);
return Math.sqrt(dx*dx + dy*dy);
}
function getMidpoint(point1, point2) {
return {
x: (point1.x + point2.x... | JavaScript | 0 | @@ -2436,18 +2436,20 @@
ent.
-which != 1
+button !== 0
) re
|
97a7a55a7cb3c374a314cc0561fbae768ad8caae | Add statistics button | src/injectscripts/nitc.js | src/injectscripts/nitc.js |
$("#lighthouseExportButton").on('click mouseenter', function() {
var exports = JSON.parse(filterDataForExport());
var href = lighthouseUrl + "pages/nitcexport.html?host=" + location.hostname +
"&start=" + encodeURIComponent(exports.StartDate) + "&end=" +
encodeURIComponent(exports.EndDate);
if (expo... | JavaScript | 0.000001 | @@ -745,16 +745,764 @@
);%0A%7D);%0A%0A
+$(%22#lighthouseStatsButton%22).on('click mouseenter', function() %7B%0A var exports = JSON.parse(filterDataForExport());%0A var href = lighthouseUrl + %22pages/nitcstats.html?host=%22 + location.hostname +%0A %22&start=%22 + encodeURIComponent(exports.StartDate) + %22&e... |
7e842b0850cc8223d34af98e6af4a043f747845f | Fix option name zoomInTipLabel | src/ol/control/zoomcontrol.js | src/ol/control/zoomcontrol.js | // FIXME works for View2D only
goog.provide('ol.control.Zoom');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('goog.events');
goog.require('goog.events.EventType');
goog.require('ol.View2D');
goog.require('ol.animation');
goog.require('ol.control.Control');
goo... | JavaScript | 0.999287 | @@ -1206,16 +1206,18 @@
ons.zoom
+In
TipLabel
|
b53d74285bdf3759a6eb7be8ccd31b60a94effd5 | Fix checks for undefined in zoom control | src/ol/control/zoomcontrol.js | src/ol/control/zoomcontrol.js | goog.provide('ol.control.Zoom');
goog.require('goog.dom');
goog.require('ol.events');
goog.require('ol.events.EventType');
goog.require('ol.animation');
goog.require('ol.control.Control');
goog.require('ol.css');
goog.require('ol.easing');
/**
* @classdesc
* A control with 2 buttons, one for zoom in and one for zo... | JavaScript | 0 | @@ -717,16 +717,30 @@
assName
+!== undefined
? option
@@ -793,16 +793,30 @@
s.delta
+!== undefined
? option
@@ -865,24 +865,38 @@
zoomInLabel
+!== undefined
? options.zo
@@ -954,16 +954,30 @@
utLabel
+!== undefined
? option
@@ -1042,32 +1042,46 @@
.zoomInTipLabel
+!== undefined
?%0A options.
@@... |
ec811bfa1f2a42a406f44d154d0d6b74a5b2feb9 | Add primaryAction condition to DragPan interaction | src/ol/interaction/DragPan.js | src/ol/interaction/DragPan.js | /**
* @module ol/interaction/DragPan
*/
import {scale as scaleCoordinate, rotate as rotateCoordinate} from '../coordinate.js';
import {easeOut} from '../easing.js';
import {noModifierKeys} from '../events/condition.js';
import {FALSE} from '../functions.js';
import PointerInteraction, {centroid as centroidFromPointer... | JavaScript | 0 | @@ -182,16 +182,31 @@
fierKeys
+, primaryAction
%7D from '
@@ -670,16 +670,69 @@
ierKeys%7D
+ and %7B@link module:ol/events/condition~primaryAction%7D
.%0A * @pr
@@ -1639,30 +1639,32 @@
ition :
-noModifierKeys
+defaultCondition
;%0A%0A /
@@ -4731,16 +4731,258 @@
%0A %7D%0A%7D%0A%0A
+/**%0A * @param %7Bol.Ma... |
9ed5bf87a126fb69f215684998ea5849eea5c473 | Fix user cover images | ghost/admin/controllers/settings/users/user.js | ghost/admin/controllers/settings/users/user.js | import SlugGenerator from 'ghost/models/slug-generator';
var SettingsUserController = Ember.ObjectController.extend({
user: Ember.computed.alias('model'),
email: Ember.computed.readOnly('user.email'),
slugValue: Ember.computed.oneWay('user.slug'),
lastPromise: null,
coverDefault: Ember.compute... | JavaScript | 0 | @@ -800,21 +800,54 @@
return
-cover
+'background-image: url(' + cover + ')'
;%0A %7D)
|
a81fb8c5c274611081a3303f343e444b526de4e0 | Update OU Theorymon | mods/theorymon/scripts.js | mods/theorymon/scripts.js | exports.BattleScripts = {
init: function () {
this.modData('Pokedex', 'archeops').abilities['1'] = 'Vital Spirit';
this.modData('Pokedex', 'porygonz').types = ['Normal', 'Ghost'];
this.modData('Pokedex', 'weezing').types = ['Poison', 'Steel'];
this.modData('Pokedex', 'moltres').abilities['1'] = 'Magic Guard';
... | JavaScript | 0 | @@ -1778,14 +1778,83 @@
Coat';%0A
+%09%09this.modData('Pokedex', 'aggronmega').types = %5B'Steel', 'Dragon'%5D;%0A
%09%7D%0A%7D;%0A
|
7285a7e7794af8965223e9439a2306a58f263fa2 | update tests to reflect new model api | front_end/js/tests/specs/reg-data-spec.js | front_end/js/tests/specs/reg-data-spec.js | define(['regs-data', 'samplejson'], function(RegsData, testjson) {
describe("RegsData module", function() {
RegsData.parse(testjson);
it("should have a regStructure array", function() {
expect(RegsData.regStructure).toBeTruthy();
});
it("should have a regStructure array with 7 values", functio... | JavaScript | 0 | @@ -295,17 +295,17 @@
ay with
-7
+8
values%22
@@ -375,9 +375,9 @@
al(
-7
+8
);%0A
@@ -850,24 +850,19 @@
%22should
-r
+g
et
-rieve
2345-9%22
@@ -902,16 +902,11 @@
ata.
-r
+g
et
-rieve
('23
@@ -1460,16 +1460,11 @@
ata.
-isLoaded
+has
(%2223
|
377659959242db6389d110ff9b60f8d421b6d5ee | Add test for the "each" method | src/lib/collection.spec.js | src/lib/collection.spec.js | let Collection = require('./collection');
describe('Collection', function () {
let collection;
beforeEach(function () {
collection = new Collection();
});
describe('when instantiating without items', function () {
it('should instantiate', function () {
expect(collection).t... | JavaScript | 0.998437 | @@ -1838,13 +1838,493 @@
%0A %7D);
+%0A%0A describe('when iterating through data with the each method', function () %7B%0A let item;%0A let count;%0A%0A beforeEach(function () %7B%0A item = %7Bname: 'foo'%7D;%0A collection.add(%7Bname: 'foo'%7D, %7Bname: 'bar'%7D, %7Bna... |
1bc596b822ef3a8eacf4fcbe1c211cde4233d011 | fix formatting of custom usage field | src/ng/directive/ngSwitch.js | src/ng/directive/ngSwitch.js | 'use strict';
/**
* @ngdoc directive
* @name ngSwitch
* @restrict EA
*
* @description
* The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.
* Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at ... | JavaScript | 0.000001 | @@ -1771,16 +1771,26 @@
@usage%0A
+ *%0A * %60%60%60%0A
* %3CANY
@@ -1959,16 +1959,23 @@
%3C/ANY%3E%0A
+ * %60%60%60%0A
*%0A *%0A *
|
d20b418422781e7e7202d872ef943a8648fd5435 | rename test name for commands | test/arbitrary/commands.js | test/arbitrary/commands.js | "use strict";
const assert = require('assert');
const jsc = require('jsverify');
const lazyseq = require("lazy-seq");
const {commands} = require('../../src/arbitrary/commands');
const GENSIZE = 10;
var fakeJscCommand = function(ClassType) {
return jsc.bless({
generator: size => new Object({ comm... | JavaScript | 0.000063 | @@ -1039,24 +1039,24 @@
ate
-multiple command
+command elements
', f
|
29799d326e4b69b586df101344824720cdaeecf8 | Add energy converter carousel | js/energy-systems/model/EnergySystemsModel.js | js/energy-systems/model/EnergySystemsModel.js | // Copyright 2014-2015, University of Colorado Boulder
/**
* Model for the 'Energy Systems' screen of the Energy Forms And Changes simulation.
*
* @author John Blanco
* @author Jesse Greenberg
* @author Andrew Adare
*/
define( function( require ) {
'use strict';
// Modules
var EnergySystemElementCarousel ... | JavaScript | 0 | @@ -2121,643 +2121,540 @@
//
-TODO change from the single-element version to all, once the others are non-empty%0A this.carousels = %5B%0A this.energySourcesCarousel%0A %5D;%0A // this.carousels = %5B%0A // this.energySourcesCarousel,%0A // this.energyConvertersCarousel,%0A // this.energ... |
217b6e8395eda0ff2d95bd16fea9a36672df0a39 | Update SecretHug.js | skills/SecretHug.js | skills/SecretHug.js | module.exports = function(skill, info, bot, message, db) {
bot.api.users.info({user: message.user}, (error, response) => {
let {name, real_name} = response.user;
bot.reply(message, 'under development');
})
//bot.reply(message, 'http://foaas.com/everyone/' + bot.identity.name);
//bot.reply(... | JavaScript | 0 | @@ -120,20 +120,16 @@
e) =%3E %7B%0A
-
let
@@ -163,20 +163,16 @@
e.user;%0A
-
bot.
@@ -216,91 +216,187 @@
-%7D) %0A //bot.reply(message, 'http://foaas.com/everyone/' + bot.identity.name);%0A //
+var userData = message.text.match(/%3C@(%5BA-Z0%E2%80%939%5D%7B9%7D)%3E/); // parse the text fo... |
527d185fb68a7c039b4e60b109a625e3b2ca8afe | Use strict mode in config/targets.js to avoid build crash | packages/@glimmer/blueprint/files/config/targets.js | packages/@glimmer/blueprint/files/config/targets.js | let browsers = [
'> 5%',
'last 2 Edge versions',
'last 2 Chrome versions',
'last 2 Firefox versions',
'last 2 Safari versions',
];
if (process.env.EMBER_ENV === 'test') {
browsers = [
'last 1 Chrome versions',
'last 1 Firefox versions'
];
}
module.exports = { browsers };
| JavaScript | 0.000001 | @@ -1,8 +1,23 @@
+'use strict';%0A%0A
let brow
|
e167b3ee1d81c3cb32c19122008304d3f5f1ff71 | Fix issue with accumulated queries + default pagination limit (#610) | packages/@sanity/preview/src/utils/optimizeQuery.js | packages/@sanity/preview/src/utils/optimizeQuery.js | // @flow
import {identity, sortBy, values} from 'lodash'
type Path = string[]
type Selection = [string[], Path[]]
type CombinedSelection = {
ids: string[],
paths: string[],
map: number[],
}
type Doc = {
_id: string
}
type Result = Doc[]
export function combineSelections(selections: Array<Selection>): number... | JavaScript | 0 | @@ -800,16 +800,35 @@
(',')%7D%5D%5D
+%5B0...$%7Bids.length%7D%5D
%7B_id,_ty
@@ -988,16 +988,50 @@
n(',')%7D%5D
+%5B0...$%7BcombinedSelections.length%7D%5D
%60%0A%7D%0A%0Aexp
|
47d492bfffd78b4027ea3ab4f452d574053165df | Fix bug in cache clearing. | angular-osd-resource.js | angular-osd-resource.js | (function () {
var osdResource = angular.module('osdResource', [
'ngLodash'
]);
/*
Creates a default resource. Generally, we would decorate this with a service that
handles data returned from an API (for example, we could decorate this with a
cache decorator). Each resource is built... | JavaScript | 0 | @@ -3565,16 +3565,31 @@
+ currentCache =
initRes
|
607bf7de090d7cde9cededf6883f72ba2291f4c7 | remove un-needed console.log | src/node/registry-builder.js | src/node/registry-builder.js | /*eslint strict:0, no-console:0*/
'use strict';
const _ = require('lodash');
const cheerio = require('cheerio');
const npm = require('npm');
const Promise = require('bluebird');
const { all, fromNode, promisify, promisifyAll } = require('bluebird');
const fs = promisifyAll(require('fs'));
const request = require('requ... | JavaScript | 0.000009 | @@ -4435,36 +4435,8 @@
s%60;%0A
- console.log(url);%0A
|
e96ce04227d203ee8220e837da9729c0418c1f66 | Revert "Adding delay to tests" | test/css-validator_test.js | test/css-validator_test.js | var fs = require('fs');
var expect = require('chai').expect;
var nock = require('nock');
var validateCss = require('../');
function runValidateCss() {
before(function (done) {
var that = this;
validateCss(this.css, function (err, data) {
that.err = err;
that.data = data;
done();
});
}... | JavaScript | 0 | @@ -321,89 +321,8 @@
);%0A%7D
-%0Afunction wait(ms) %7B%0A before(function (done) %7B%0A setTimeout(done, ms);%0A %7D);%0A%7D
%0A%0Aif
@@ -1276,72 +1276,8 @@
) %7B%0A
- // Wait a seconds for the w3c rate limiting%0A wait(1000);%0A
|
610fbf0a54e63e4117d139415aa2cf2c5667cd3b | increase the precision of the button component's test config when running vrt | packages/components/bolt-button/__tests__/button.js | packages/components/bolt-button/__tests__/button.js | import {
render,
renderString,
stop as stopTwigRenderer,
} from '@bolt/twig-renderer';
import { fixture as html } from '@open-wc/testing-helpers';
const { readYamlFileSync } = require('@bolt/build-tools/utils/yaml');
const { join } = require('path');
const schema = readYamlFileSync(join(__dirname, '../button.sch... | JavaScript | 0.000001 | @@ -4261,35 +4261,32 @@
ureThreshold: '0
-.01
',%0A failure
@@ -5633,11 +5633,8 @@
: '0
-.01
',%0A
|
844a99bfeab6709ef8f83b4201391c489aa60e82 | Introduce delays in directed requester tests to increase test stability | test/directed-requester.js | test/directed-requester.js | import test from 'ava';
import r from 'randomstring';
import LogSuppress from '../lib/log-suppress';
LogSuppress.init(console);
const environment = r.generate();
const { Requester, Responder } = require('../')({ environment });
test.cb('Supports directed requests targeted at single responder using callbacks', (t) =>... | JavaScript | 0 | @@ -3382,24 +3382,89 @@
index++) %7B%0A
+ await new Promise((resolve) =%3E setTimeout(resolve, 50));%0A
awai
|
c2fadb0945434710d0117bac793c95a81aa16636 | fix seconds lost in datetime | src/js/datetime-picker.js | src/js/datetime-picker.js | /* global $:true */
/* jshint unused:false*/
+ function($) {
"use strict";
var defaults;
var formatNumber = function (n) {
return n < 10 ? "0" + n : n;
}
var Datetime = function(input, params) {
this.input = $(input);
this.params = params;
this.initMonthes = ('01 02 03 04 05 06 07 08 09 ... | JavaScript | 0.00008 | @@ -5078,10 +5078,10 @@
; i%3C
-59
+60
; i+
|
10a955148e1193729883acf225ca93e9e04ebff0 | Change `_gc` method name | packages/relay-runtime/store/RelayMarkSweepStore.js | packages/relay-runtime/store/RelayMarkSweepStore.js | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const RelayDataLoader = require('./RelayDataLoader');
const RelayModernRecord = require('./RelayMo... | JavaScript | 0.000001 | @@ -4610,16 +4610,17 @@
this._
+_
gc();%0A
@@ -4668,16 +4668,17 @@
%0A %7D%0A%0A
+_
_gc(): v
|
2d424eb1f55c54242b9907d9193880638e4a5834 | check if government is defined | app/views/directives/party-status.js | app/views/directives/party-status.js | define(['app', '/app/js/common.js'], function(app) {
app.directive('ngPartyStatus', [
'$rootScope', '$filter', '$timeout', 'commonjs', '$q',
function($rootScope, $filter, $timeout, commonjs, $q) {
return {
restrict: 'EAC',
templateUrl : '/app/views/directi... | JavaScript | 0 | @@ -493,27 +493,18 @@
-console.log
+if
($scope.
@@ -514,18 +514,22 @@
ernment)
-;%0A
+%7B%0A
@@ -633,16 +633,20 @@
+
.then(fu
@@ -686,16 +686,20 @@
+
console.
@@ -736,16 +736,20 @@
+
+
$scope.p
@@ -790,19 +790,45 @@
-%7D);
+ %7D);%0A ... |
8ceae775b4f509a303632e5efb42962dff937c32 | Update off-canvas-menu.js | src/js/off-canvas-menu.js | src/js/off-canvas-menu.js | (function($) {
$.fn.offCanvasMenu = function(options) {
var settings = $.extend({
// These are the defaults.
container : $(this),
containerActiveAffix: "active",
globalName: "js-offCanvasMenu",
activeState: "is-active",
effect: "push... | JavaScript | 0.000003 | @@ -2359,32 +2359,32 @@
-buttonSettings.i
+elements.buttonI
con.remo
@@ -2488,18 +2488,16 @@
ext.text
-fi
(setting
@@ -2717,24 +2717,24 @@
-buttonSettings.i
+elements.buttonI
con.
|
cf55408d6e2d2c3bc0f2c29121be519d95272ad0 | Add documentation in delete-trip-button. | frontend/src/components/ViewTrips/delete-trip-button.js | frontend/src/components/ViewTrips/delete-trip-button.js | import React from 'react';
import app from '../Firebase/';
import Button from 'react-bootstrap/Button';
import * as DB from '../../constants/database.js';
const db = app.firestore();
/**
* Component used to delete a Trip.
*
*
* @param {Object} props These are the props for this component:
* - tripId: Document ... | JavaScript | 0 | @@ -530,16 +530,17 @@
=%3E %7B%0A
+
/**%0A *
@@ -588,16 +588,475 @@
delete.%0A
+ *%0A * This was derived from the delete collection snippets in the documentation%0A * at https://firebase.google.com/docs/firestore/manage-data/delete-data.%0A *%0A * @param %7Bfirebase.firestore.Firestore%7D db Firest... |
41c3bf899ac0889037bae316c1d5359294024742 | Update iconFont sass generator for use with nunjucks-render 2.0.0 | gulpfile.js/tasks/iconFont/generateIconSass.js | gulpfile.js/tasks/iconFont/generateIconSass.js | var gulp = require('gulp')
var render = require('gulp-nunjucks-render')
var rename = require('gulp-rename')
var handleErrors = require('../../lib/handleErrors')
var gutil = require('gulp-util')
module.exports = function(config) {
return function(glyphs, options) {
gutil.log(gutil.color... | JavaScript | 0 | @@ -213,16 +213,56 @@
p-util')
+%0Avar data = require('gulp-data')
%0A%0Amodule
@@ -537,22 +537,20 @@
.pipe(
-render
+data
(%7B%0A
@@ -1061,16 +1061,77 @@
%7D))%0A
+ .pipe(render(%7B%0A path: config.template%0A %7D))%0A
.on(
|
9a97ae0b12d5aa002a63b0218c2110c4a5cc84d8 | converts "event" to string in headlights | src/js/util/headlights.js | src/js/util/headlights.js | /*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 1 | @@ -1929,22 +1929,30 @@
tegory,
+String(
event)
+)
;%0A
|
09febf15696b315cb779103b37886c5656f272c4 | Support any storage resolution | server/data-fragments/get-direct-object-fragments.js | server/data-fragments/get-direct-object-fragments.js | // Returns fragment that emits direct data for specified object
// Optional filtering of some records is possible via `options.filter`
'use strict';
var ensureCallable = require('es5-ext/object/valid-callable')
, ensureString = require('es5-ext/object/validate-stringifiable-value')
, escape = require('e... | JavaScript | 0 | @@ -423,16 +423,75 @@
agment')
+%0A , anyIdToStorage = require('../utils/any-id-to-storage')
%0A%0A , dr
@@ -795,16 +795,51 @@
) %7B%0A%09var
+ storage;%0A%09if (storageName != null)
storage
@@ -859,29 +859,16 @@
Storage(
-ensureString(
storageN
@@ -871,17 +871,16 @@
ageName)
-)
;%0A%09retur
@@ -1013,16 +101... |
52461ae83ede02b3c111a75797b253a60d3beaa9 | Update combine.js | devtools-plugin/combine.js | devtools-plugin/combine.js | var fs = require('fs');
module.exports = function(gameServer,split) {
var fileone = fs.readFileSync('./console.txt',"utf8");
var filetwo = fs.readFileSync('./translate.txt',"utf8");
var one = fileone.split("\n");
var two = filetwo.split("\n");
var result = "";
for (var i in one) {
var on = one[i];
var tw = two[i];
... | JavaScript | 0.000001 | @@ -251,16 +251,33 @@
sult = %22
+this.lang = %5B%5D;%5Cn
%22;%0Afor (
@@ -435,16 +435,60 @@
+ s;%0A%7D%0A
+result = result + %22module.exports = this;%22;%0A
fs.write
|
f97eb4345aa08b876beecda2d9e46aeebfac5a3f | Update firefox-user.js | apps/firefox-user.js | apps/firefox-user.js | // Mozilla User Preferences
//dennyhalim.com
//http://kb.mozillazine.org/User.js_file
//http://kb.mozillazine.org/Locking_preferences
//https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences
pref("app.update.channel", "esr");
user_pref("browser.cache.compression_level", 1);
us... | JavaScript | 0.000003 | @@ -334,268 +334,437 @@
ser.
-sessionhistory.max_entries%22, 10);%0A//user_pref(%22devtools.memory.enabled%22, false);%0Auser_pref(%22browser.cache.memory.enable%22, false); //very usefull if you have %3C 4GB RAM%0Auser_pref(%22network.cookie.cookieBehavior%22, 3);%0Auser_pref(%22network.cookie.lifetimePolicy%22, 2);
... |
881405af40942aec69ed4d05a501c5b8661e2ea2 | read nonexistent tx-db folder | lib/db.js | lib/db.js | const _ = require('lodash/fp')
const pify = require('pify')
const fs = pify(require('fs'))
const cp = require('child_process')
const uuid = require('uuid')
const path = require('path')
const BN = require('./bn')
let dbName
module.exports = { save, prune, clean }
function list (dbRoot) {
return fs.mkdir(dbRoot)
... | JavaScript | 0.000001 | @@ -2443,16 +2443,53 @@
return%0A
+ if (!fs.existsSync(dbRoot)) return%0A
const
|
ac3caa9a23b495af94a1febdbd43b5e6b7beb778 | Fix so on update is run | lib/db.js | lib/db.js | 'use babel';
import {Emitter} from 'atom';
import CSON from 'season';
import fs from 'fs';
import path from 'path';
import os from 'os';
import _ from 'underscore-plus';
export default class DB {
constructor() {
this.emitter = new Emitter();
this.updaters = {};
fs.exists(this.file(), (exists) => {
... | JavaScript | 0 | @@ -268,16 +268,139 @@
= %7B%7D;%0A%0A
+ this.onUpdate((projects) =%3E %7B%0A for (let project of projects) %7B%0A this.sendUpdate(project);%0A %7D%0A %7D);%0A%0A
fs.e
@@ -1348,42 +1348,8 @@
%7D%0A%0A
- this.sendUpdate(result);%0A%0A
@@ -2465,38 +2465,8 @@
%3E %7B%0A
- ... |
896cf70e97356f1c1c38a90e6985c71239fb10da | add dirty fix to display rankings at 8:08 in France ;-) | huitparfait-api/src/services/rankingService.js | huitparfait-api/src/services/rankingService.js | import { cypher } from '../infra/neo4j'
import { betterUser } from './userService'
import moment from 'moment'
export function calculateRanking({ groupId, userId, from = 0, pageSize = 50 }) {
const transformAnonymous = (groupId == null)
const eightLimit = getEightLimit()
return cypher(`
MATCH (me... | JavaScript | 0 | @@ -1798,16 +1798,82 @@
oment()%0A
+ // TODO handle 8:08 on Europe/Paris timezone properly ;-)%0A
@@ -1928,17 +1928,17 @@
hours:
-8
+6
, minute
|
c9ca96e2702be54f8a0964c39667c0f34b87a990 | add int & uint methods | lib/is.js | lib/is.js | var typeOf = require('./of');
var typify = require('./typify');
var isBuffer = require('./is.buffer');
var isArrayLike = require('./is.array-like');
function is(expected, value) {
return new RegExp('(' + typify(expected, true) + ')').test(typeOf(value));
}
is.not = function isnt(expected, value) {
return !is(expect... | JavaScript | 0.000041 | @@ -488,16 +488,321 @@
e);%0A%7D;%0A%0A
+is.int = function isInt(value) %7B%0A%09return parseFloat(value, 10) === parseInt(value, 10);%0A%7D;%0A%0Ais.not.int = function isntInt(value) %7B%0A%09return !is.int(value);%0A%7D;%0A%0Ais.uint = function isUint(value) %7B%0A%09return is.int(value) && value %3E= 0;%0A%7D;%0A%0... |
3560b6eb3beabc9d3332a057f954f07154eca4db | Fix browser compatibility issues of the zoom | remote/remotezoom.js | remote/remotezoom.js | const RevealRemoteZoom = () => {
let reveal = null
let currentZoom = null
let currentSlideElement = null
function allowControl() {
const config = reveal.getConfig()
return config.controls && config.touch
}
function dispatchEnableZoom(focus) {
if (!isValidFocus(focus)) {
console.warn('in... | JavaScript | 0 | @@ -1797,11 +1797,8 @@
le(2
-00%25
) tr
|
b74b4ed7bd7026fa9583ee334e1914fa91a4f6e2 | update HuePicker | src/HuePicker/HuePicker.js | src/HuePicker/HuePicker.js | /**
* @file HuePicker component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import Event from '../_vendors/Event';
import Dom from '../_vendors/Dom';
import Valid from '../_vendors/Valid';
import Color from '../_vendors/Color';
... | JavaScript | 0 | @@ -558,24 +558,67 @@
d = false;%0A%0A
+ this.getOffset = ::this.getOffset;%0A
this
@@ -799,16 +799,35 @@
et(value
+ = this.props.value
) %7B%0A%0A
@@ -1880,26 +1880,10 @@
set(
-this.props.value
)%0A
+
@@ -2027,32 +2027,284 @@
ndler);%0A%0A %7D%0A%0A
+ componentWillReceiveProps(next... |
65065ccf92c147333e32694dcfb9e4f1dcb3fb39 | fix to support SerialPort 7.x | src/NodeSerialTransport.js | src/NodeSerialTransport.js | 'use strict';
var SerialPort = require('serialport').SerialPort,
webduino = require('webduino-js');
var push = Array.prototype.push;
var Transport = webduino.Transport,
TransportEvent = webduino.TransportEvent,
proto;
function NodeSerialTransport(options) {
Transport.call(this, options);
this._options = ... | JavaScript | 0 | @@ -50,19 +50,8 @@
rt')
-.SerialPort
,%0A
@@ -1784,20 +1784,18 @@
t.isOpen
-()
;%0A
+
%7D%0A
@@ -1962,16 +1962,48 @@
%7D%0A%7D;%0A%0A
+proto.flush = function () %7B%0A%0A%7D%0A%0A
proto.cl
@@ -2067,18 +2067,16 @@
t.isOpen
-()
) %7B%0A
@@ -2188,16 +2188,16 @@
%7D%0A%7D;%0A%0A
+
module.e
@@ -22... |
8f85e73f324899829289a21e69ec3b6ac39a59ae | Add reject if map function failed | source/class/core/event/Flow.js | source/class/core/event/Flow.js | /*
==================================================================================================
Core - JavaScript Foundation
Copyright 2013 Sebastian Werner
Copyright 2013 Sebastian Fastner
==================================================================================================
*/
(function() {
... | JavaScript | 0.000006 | @@ -1076,16 +1076,75 @@
%7D%0A
+ %7D, function(reason) %7B%0A %09promise.reject(reason);%0A
%7D)
@@ -1220,57 +1220,8 @@
es);
- // map(%5BpromiseOrValues%5D, mapFunction, context);
%0A %7D
|
89808411d57ced163ab101e8cc63b9f68480bc33 | use response end as indicator | test/integration/server.js | test/integration/server.js | module.exports = ServerTest = function() {
IntegrationTest.call(this);
var async = this.start();
this.server_responds_to_nonexistent_static_file_request_with_a_404 = function() {
this.get("/dne.html", function(response) {
assert.equal(response.statusCode, 404);
async.finish();
});
}
thi... | JavaScript | 0.000001 | @@ -1946,72 +1946,31 @@
%7D);%0A
-%0A
-ext.Sync.wait_for(function() %7B return data.length === 6 %7D
+response.on(%22end%22
, fu
|
dfbc0debbe4fe77ba1c4e7bafcf42d53dcd8c606 | Add reasons to focus properties, test for same, and test for audit rules to ignore | test/js/properties-test.js | test/js/properties-test.js | module("Text Descendant", {
});
test("Find text descendants in an iframe.", function() {
// Setup fixture
var fixture = document.getElementById('qunit-fixture');
var iframe = document.createElement('iframe');
var html = '<body><div id="foo">bar</div></body>';
fixture.appendChild(iframe);
ifram... | JavaScript | 0 | @@ -565,17 +565,16 @@
);%0A%7D);%0A%0A
-%0A
module('
|
5282a920fef9bf7850117b2723b4fdd9710093be | fix datepicker | source/assets/javascripts/locastyle/_datepicker.js | source/assets/javascripts/locastyle/_datepicker.js | var locastyle = locastyle || {};
locastyle.datepicker = (function() {
'use strict';
function init() {
var $datepicker = $('#datepicker').pikaday({
firstDay: 1,
minDate: new Date('2000-01-01'),
maxDate: new Date('2020-12-31'),
yearRange: [2000,2020],
i18n: {
pr... | JavaScript | 0.000001 | @@ -87,52 +87,188 @@
%0A%0A
-function init() %7B%0A var $datepicker = $('#
+var config = %7B%0A selector: '.datepicker'%0A %7D;%0A%0A function init() %7B%0A $(config.selector).each(function()%7B%0A create($(this));%0A %7D);%0A %7D%0A%0A function create($elem)%7B%0A var $
date
@@ -273,18 +273... |
8a9eb6c5f1112ef9f0db6d0102ce475d158c9a01 | disable snackbar message in error handler | addon/-lib/authenticated.js | addon/-lib/authenticated.js | import { get, getWithDefault } from '@ember/object';
import { isEmpty } from '@ember/utils';
import { getOwner } from '@ember/application';
import { Mixin as M } from 'base-object';
import { isFunction, isPlainObject } from 'lodash-es';
const bearerErrorCodes = [
'invalid_token',
'unknown_token',
'token_disable... | JavaScript | 0.000002 | @@ -1224,24 +1224,26 @@
.%0A
+//
this.send ('
|
091a2184d68cc8420db324f1c0b6e821ee57afbf | fix carousel CSS | src/components/carousels/CarouselRenderables.js | src/components/carousels/CarouselRenderables.js | import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import Slider from 'react-slick'
import { NextPaddle, PrevPaddle } from './CarouselParts'
import PostStreamContainer from '../../containers/PostStreamContainer'
import { css, media, select } from '../../styles/jss'
import * as s from '../..... | JavaScript | 0.000003 | @@ -392,16 +392,64 @@
Height,%0A
+ select('& .slick-slide %3E div', s.fullHeight),%0A
select
@@ -808,18 +808,8 @@
s.p
-x40, s.py4
0),%0A
|
393f975f9252a656d2f7e365a4523791ac951031 | fix to use step objects from json | lib/imports/api/authority/server/authority.js | lib/imports/api/authority/server/authority.js | // import { ProseMirror } from './../../../prosemirror/dist/edit'
import { Step } from './../../../prosemirror/dist/transform'
import { defaultSchema } from './../../../prosemirror/dist/model/defaultschema'
export class ProseMeteorAuthority {
/**
* Central authority to track a ProseMirror document, apply steps fr... | JavaScript | 0 | @@ -1971,16 +1971,22 @@
step
+Object
s.forEac
|
9170a32fe7b6bf047eb342aadf5fbc7e23144ff5 | add functional logic for total value | src/components/rows/presentation/DaysWorking.js | src/components/rows/presentation/DaysWorking.js | import React from 'react'
import { TableRow, TableRowColumn } from 'material-ui/Table'
const DaysWorking = ({ annualLeave, sickLeave, publicHolidays, weekends, days, style }) => {
delete days.thisYear
// get total number of days in the year.
// subtract weekends, sickLeave, annualLeave, publicHolidays from it.
... | JavaScript | 0.000053 | @@ -181,181 +181,232 @@
%7B%0A
-delete days.thisYear%0A // get total number of days in the year.%0A // subtract weekends, sickLeave, annualLeave, publicHolidays from it.%0A const total = Object.values(day
+const total = Object.values(days)%0A .filter(value =%3E value %3C 54) // get rid of the thisYear value%0A... |
76a3754dcc698442b2ec4396f6f6f986ce14dbf8 | rework regex | plugins/link-text/index.js | plugins/link-text/index.js | /**
* A plugin to identify unclear link text such as "more" and "click here,"
* which can make for a bad experience when using a screen reader
*/
let $ = require("jquery");
let Plugin = require("../base");
let annotate = require("../shared/annotate")("link-text");
class LinkTextPlugin extends Plugin {
getTitle... | JavaScript | 0.00003 | @@ -873,70 +873,8 @@
) %7B%0A
- textContent = textContent.replace(/%5B%5Ea-zA-Z %5D/g, %22%22);%0A
@@ -1009,25 +1009,24 @@
%5D;%0A
-%0A
for (let
@@ -1021,57 +1021,59 @@
-for (let i = 0; i %3C stopWords.length; i++) %7B%0A
+// Generate a regex to match each of the stopWords%0A
... |
1b8591fca0fd2773d1969faaf60ba6eee86c4997 | Fix Issue232, avoid TD002 for EMG | lib/package/plugins/TD002-useTargetServers.js | lib/package/plugins/TD002-useTargetServers.js | /*
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | JavaScript | 0 | @@ -1091,19 +1091,242 @@
%7D;%0A%0A
-var
+let emg = false;%0A%0Aconst onBundle = function (b, cb) %7B%0A debug( %22onBundle: %22 + b.getName());%0A if( b.getName().startsWith(%22edgemicro_%22) ) %7B%0A emg = true;%0A %7D%0A if (typeof cb == %22function%22) %7B%0A cb(null, false);%0A %7D%0A%7D;%0A%0Acons... |
c0141e9ccd02fe0226a7695d56b69f9b8a0e2060 | fix bugs, plus log progress better | generate.js | generate.js | var sbot = require('scuttlebot')
var fs = require('fs')
var path = require('path')
var pull = require('pull-stream')
var paramap = require('pull-paramap')
var Blather = require('blather')
function markov (name) {
var m = new Blather()
var text = fs.readFileSync(path.join(__dirname, 'text', name+'.txt'), 'utf8')
... | JavaScript | 0 | @@ -2242,17 +2242,17 @@
feeds: 1
-0
+5
00,%0A me
@@ -2259,17 +2259,17 @@
ssages:
-1
+2
00000,%0A
@@ -2336,16 +2336,320 @@
re%5D'%0A%7D%0A%0A
+function flowMeter (log, slice) %7B%0A var count = 0, slice_count = 0, ts%0A return pull.through(function (data) %7B%0A count ++; slice_count++%0A if(!ts) ts = Da... |
0c7edbae0916f4ad82dfbdb55042dc58933c2f94 | fix part of bug 1272 testcases test_compareToLjava_lang_Enum and test_valueOfLjava_lang_String in EnumTest will failed | sources/net.sf.j2s.java.core/src/java/lang/Enum.js | sources/net.sf.j2s.java.core/src/java/lang/Enum.js | Clazz.load (["java.io.Serializable", "java.lang.Comparable"], "java.lang.Enum", ["java.lang.ClassCastException", "$.CloneNotSupportedException", "$.IllegalArgumentException", "$.NullPointerException"], function () {
c$ = java.lang.Enum = Enum = function () {
this.$name = null;
this.$ordinal = 0;
Clazz.instantialize... | JavaScript | 0 | @@ -1115,24 +1115,85 @@
tion (o) %7B%0D%0A
+if (o == null) %7B%0D%0A throw new NullPointerException ();%0D%0A%7D%0D%0A
var other =
@@ -1363,16 +1363,17 @@
rn self.
+$
ordinal
@@ -1380,16 +1380,17 @@
- other.
+$
ordinal;
@@ -2038,24 +2038,35 @@
nst %22 +
-enumType
+this.__CLASS_NAME__
+ %22.%22 +
|
793c250803439636096110bb082a950e55b67b29 | Update GoogleApiComponent.js | dist/GoogleApiComponent.js | dist/GoogleApiComponent.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', 'react', 'react-dom', './lib/ScriptCache', './lib/GoogleApi'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('react'), require('react-dom'), require('./lib/ScriptC... | JavaScript | 0.000001 | @@ -3224,9 +3224,9 @@
'3.2
-4
+8
';%0A
@@ -5717,8 +5717,9 @@
per;%0A%7D);
+%0A
|
f291eff799dd74c06f5934aacbcfbdb4d8f7d009 | Fix dynamic commit hash abbreviation length (#272) | lib/ui.js | lib/ui.js | 'use strict';
const execa = require('execa');
const inquirer = require('inquirer');
const chalk = require('chalk');
const githubUrlFromGit = require('github-url-from-git');
const util = require('./util');
const version = require('./version');
function prettyVersionDiff(oldVersion, inc) {
const newVersion = version.ge... | JavaScript | 0.000322 | @@ -1280,57 +1280,43 @@
nst
-commitParts = commit.match(/%5E(.+)%5Cs(%5Ba-f%5Cd%5D%7B7%7D)$/
+splitIndex = commit.lastIndexOf(' '
);%0A%09
@@ -1385,16 +1385,33 @@
mmit
-Parts%5B1%5D
+.substring(0, splitIndex)
);%0A%09
@@ -1475,16 +1475,34 @@
mmit
-Parts%5B2%5D
+.substring(splitIndex + 1)
);%0A%0A
|
107859379e200094b9f4a4d5978b0b305f479a87 | Add missing method documentation for ImageOverlay (#5158) | src/layer/ImageOverlay.js | src/layer/ImageOverlay.js | /*
* @class ImageOverlay
* @aka L.ImageOverlay
* @inherits Interactive layer
*
* Used to load and display a single image over specific bounds of the map. Extends `Layer`.
*
* @example
*
* ```js
* var imageUrl = 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
* imageBounds = [[40.7... | JavaScript | 0 | @@ -2767,24 +2767,128 @@
is;%0D%0A%09%7D,%0D%0A%0D%0A
+%09// @method setBounds(bounds: LatLngBounds): this%0D%0A%09// Update the bounds that this ImageOverlay covers%0D%0A
%09setBounds:
@@ -3213,63 +3213,260 @@
%0A%0D%0A%09
-getBounds: function () %7B%0D%0A%09%09return this._bounds;%0D%0A%09%7D,%0D%0A
+// @method g... |
89e5ca132672819710973338b6fee2fa12af0787 | fix multiple mapped test | array/test/mapped.js | array/test/mapped.js | var test = require('tape')
var GraphArray = require('../')
var Observ = require('observ')
var ObservStruct = require('observ-struct')
var computed = require('observ/computed')
var getTypes = require('../../lib/get-types')
test('map nested observ', function (t) {
var obs = GraphArray({
getType: getTypes({
... | JavaScript | 0.000422 | @@ -2686,24 +2686,112 @@
third%0A %7D)%0A%0A
+ var thirdChanges = %5B%5D%0A thirdMapped(function (val) %7B%0A thirdChanges.push(val)%0A %7D)%0A%0A
values.set
@@ -3575,96 +3575,8 @@
%5D)%0A%0A
- var thirdChanges = %5B%5D%0A thirdMapped(function (val) %7B%0A thirdChanges.push(val)%0A %7D)%0A%0A
va
|
34669aa9458e06eef13e67c53815ad340646f0cb | fix bug of not being able to find the collection in database | database.js | database.js | var MongoClient = require('mongodb').MongoClient;
module.exports = {
getConnection: function(address, callback){
return getConnection(address, callback);
}
};
function getConnection(address, callback){
var connection = MongoClient.connect(
address,
function(err){
if(err){
callback(err);
}else{
... | JavaScript | 0 | @@ -261,24 +261,28 @@
function(err
+, db
)%7B%0A%09%09%09if(err
@@ -330,16 +330,20 @@
ack(null
+, db
);%0A%09%09%09%7D%0A
|
f7f09faac829d881a13add5b74c43bf4bd6673cb | fix moz://a | api/src/models/posts.js | api/src/models/posts.js | module.exports = function(mongoose) {
var schema = new mongoose.Schema({
text:String,
app:{type:mongoose.Schema.Types.ObjectId,ref:"apps"},
user:{type:mongoose.Schema.Types.ObjectId,ref:"users"},
files:[{type:mongoose.Schema.Types.ObjectId,ref:"files"}],
favoriteCount:{type:N... | JavaScript | 0.000001 | @@ -2314,10 +2314,11 @@
lla.
-jp
+org
/%22%3Em
|
4af7a5da1f7d0701b0bbe6637abaa5b1c3d340bf | Allow onMove callbacks to terminate gestures | gestures.js | gestures.js | (function(){
"use strict";
var html = document.documentElement;
var touchEnabled = "ontouchstart" in html;
/** Event types */
var START = touchEnabled ? "touchstart" : "mousedown";
var MOVE = touchEnabled ? "touchmove" : "mousemove";
var END = touchEnabled ? "touchend" : "mouseup... | JavaScript | 0 | @@ -616,24 +616,135 @@
s.onEnd;%0A%09%09%0A
+%09%09THIS.onStart = startCallback;%0A%09%09THIS.onMove = moveCallback;%0A%09%09THIS.onEnd = endCallback;%0A%09%09%0A
%09%09%0A%09%09Object.
@@ -2275,35 +2275,97 @@
%0A%09%09%09
-event.preventDefault();
+%0A%09%09%09/** Allow an onMove callback to abort ... |
c450743d9a69892e3534221ce981cd96630fd9ce | check if view exists for attribute changed call back | src/pitana.registerElement.js | src/pitana.registerElement.js | /**
* Created by narendra on 15/3/15.
*/
(function() {
"use strict";
pitana.nodeToViewMapping = new pitana.ObjectMap();
pitana.register = function(elementProto) {
if (elementProto.initialize === undefined) {
elementProto.initialize = function() {
pitana.HTMLElement.apply(this, arguments);
... | JavaScript | 0 | @@ -2503,16 +2503,46 @@
uments;%0A
+ if(view!==undefined)%7B%0A
pi
@@ -2592,24 +2592,26 @@
ig, name) %7B%0A
+
if (
@@ -2690,24 +2690,26 @@
%7B%0A
+
+
view%5Bconfig.
@@ -2745,26 +2745,30 @@
s);%0A
-%7D%0A
+ %7D%0A
%7D);%0A
@@ -2767,24 +2767,26 @@
%7D);%0A ... |
9cf85f2a43d29824f4b1ec572ccfb98718d73a0a | fix tour test | test/spec/lib/test.Tour.js | test/spec/lib/test.Tour.js | import { expect } from 'chai';
import { dialogModes, actionTypes } from '../../../src/assets/constants';
import createDialogs from '../../../src/assets/dialogs';
import defaults from '../../fixtures/default';
import MockUI from '../../mocks/UI';
describe('Tour', function() {
var stats = {}, dialogs,
Tour, ui;
be... | JavaScript | 0.000001 | @@ -200,16 +200,17 @@
/default
+s
';%0Aimpor
|
89155cb3580b3462107fe93a0d1245b0ed72e201 | add oauth2-postmessage-profile project | test/storage/index_test.js | test/storage/index_test.js |
goog.require('goog.debug.Console');
goog.require('goog.testing.jsunit');
goog.require('ydn.db.Storage');
var reachedFinalContinuation, basic_schema;
var table_name = 't1';
var setUp = function() {
var c = new goog.debug.Console();
c.setCapturing(true);
//goog.debug.LogManager.getRoot().setLevel(goog.debug.Lo... | JavaScript | 0 | @@ -1794,16 +1794,32 @@
%7D%0A %5D;%0A%0A
+ goog.scope()%0A%0A
var ta
@@ -2940,26 +2940,26 @@
%0A//var test_
-5
1
+2
_multiEntry_
|
7e86ffaaccd9ebef3d42e232ab6719157d13d013 | add blurb | test/streaming-resp-err.js | test/streaming-resp-err.js | 'use strict';
var setTimeout = require('timers').setTimeout;
var allocCluster = require('./lib/alloc-cluster.js');
allocCluster.test('end response with error frame', {
numPeers: 2
}, function t(cluster, assert) {
var client = cluster.channels[0];
var server = cluster.channels[1];
server.makeSubChann... | JavaScript | 0 | @@ -1,8 +1,1130 @@
+// Copyright (c) 2015 Uber Technologies, Inc.%0A//%0A// Permission is hereby granted, free of charge, to any person obtaining a copy%0A// of this software and associated documentation files (the %22Software%22), to deal%0A// in the Software without restriction, including without limitation the right... |
fb76e1b1cd37fb246469822e7f514278a2782fba | Make sur init.js file is loaded before unit tests | tasks/core/mochaTest.js | tasks/core/mochaTest.js | module.exports = {
// Core unit tests
core: {
options: {
reporter: "spec"
},
src: ["tests/server/*.js"]
}
}; | JavaScript | 0 | @@ -101,16 +101,40 @@
src: %5B
+%22tests/server/init.js%22,
%22tests/s
|
b2d35de40733a7590eca87451c638fb652d8f46c | Update index.ios.js | index.ios.js | index.ios.js | var frameModule = require("ui/frame");
var Contact = require("./contact-model");
var KnownLabel = require("./known-label");
var CustomCNContactPickerViewControllerDelegate = NSObject.extend({
initWithResolveReject: function(resolve, reject) {
var self = this.super.init();
if(self) {
... | JavaScript | 0 | @@ -1660,21 +1660,19 @@
exports.
-f
+g
et
-ch
Contacts
|
9d27d8f58fa733d123a8fa51cedd31f018d47eee | Add support for {value:json} to json encode values | tasks/generateConfig.js | tasks/generateConfig.js | /*
* grunt-generate-config
* https://github.com/gmodev/grunt-generate-config
*
* Copyright (c) 2013 Jason Gill
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
grunt.registerMultiTask('generateConfig', 'A Grunt plugin to generate configs from templates', function() {
//... | JavaScript | 0.00018 | @@ -2004,16 +2004,82 @@
value);
+%0A%09%09%09%09%09%09temp = temp.replace(%22%7Bvalue:json%7D%22, JSON.stringify(value));
%0A%0A%09%09%09%09%09%09
|
fc2fb7302bf1f827545352c1fc8261098208bdd2 | use our fork to generate packager URLs | index.ios.js | index.ios.js | /**
* React Native Playground
* https://github.com/jsierles/rnplay
*/
'use strict';
var React = require('react-native');
var qs = require('qs');
var LinkingIOS = require('LinkingIOS');
var AppReloader = require('NativeModules').AppReloader;
var Login = require('./App/Screens/Login');
var Signup = require('./App/Sc... | JavaScript | 0 | @@ -799,16 +799,14 @@
= '
-facebook
+rnplay
/rea
|
cfee1c3600c55812319821343214d83777d534fb | use request animtion frame | index.ios.js | index.ios.js | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
//var Sample=require("./src/index.js");
const { Surface } = require("gl-react-native");
const GL = require("gl-react");
const forth2gl=require("./forth2gl");
var {
AppRegistry,
Image,
... | JavaScript | 0 | @@ -1358,15 +1358,12 @@
nent
-WillUnm
+DidM
ount
@@ -1382,33 +1382,39 @@
%0A
- clearInterval
+requestAnimationFrame
(this.
-timer
+step
);%0A
@@ -1419,33 +1419,20 @@
%0A %7D%0A ,
-componentDidMount
+step
:functio
@@ -1430,25 +1430,24 @@
p:function()
-
%7B%0A this.t
@@ -1449,81 +1449,91 @@
his.
-time... |
974c9f4eace142a6ae6c85cc75f248e4631c4547 | fix timestamps. | possel/data/static/main.js | possel/data/static/main.js | "use strict";
var possel = {
get_users: function(id){
return $.get("/user/" + id);
},
events: {
submit_event: function(node) {
$(node).submit(function(event) {
event.preventDefault();
var message = $('#message-input').val();
var buffer_id = $('.buffer.active')[0].id;
... | JavaScript | 0.000039 | @@ -1538,32 +1538,80 @@
v%22,%0A
+ %5Bmoment(line.timestamp).format(%22hh:mm:ss%22),%0A
%5Butil
@@ -1605,17 +1605,22 @@
-%5B
+
util.nod
@@ -1638,30 +1638,24 @@
ser.nick, %7B%0A
-
@@ -1714,23 +1714,11 @@
-
- %7D)%0A
+%7D)%0A
@@ -177... |
8e16fc365057a2b5cca0b0f46041f4f1d26109a7 | fix init i18n | assets/i18n/index.js | assets/i18n/index.js | import i18next from "i18next";
import resBundle from "i18next-resource-store-loader!./locales";
import LanguageDetector from "i18next-browser-languagedetector";
i18next
.use(LanguageDetector)
.init({
resources: resBundle
});
export default i18next;
| JavaScript | 0.002273 | @@ -231,16 +231,84 @@
esBundle
+,%0A whitelist: %5B%22zh%22, %22en%22, %22ja%22%5D,%0A fallbackLng: %22zh%22
%0A %7D);
|
02e79bbabfd5c9875e3a426cc827d43bcf653854 | Fix a ESDoc | src/lib/cross-conf-env.js | src/lib/cross-conf-env.js | import Spawn from 'cross-spawn';
/**
* Select the key of the value to be replaced from "process.env".
*
* @return {Array.<String>} Keys.
*/
export function FilterKeys() {
return Object
.keys( process.env )
.filter( ( key ) => {
return (
key && typeof key === 'string' &&
( key.indexOf( 'npm_pa... | JavaScript | 0.999957 | @@ -849,20 +849,20 @@
bject%3E%7D
-argv
+keys
The fil
|
20f1c51904048d788b3a62e7f8de9f4662c3cc25 | Use lodash's debounce instead of tying it to Ember's runloop | addon/components/license-picker/component.js | addon/components/license-picker/component.js | import Ember from 'ember';
import layout from './template';
export default Ember.Component.extend({
layout,
store: Ember.inject.service(),
licensesAvailable: Ember.A(),
showBorder: true,
showYear: true,
showText: false,
toggleText: true,
showCopyrightHolders: true,
showCategories: t... | JavaScript | 0 | @@ -20,16 +20,47 @@
ember';%0A
+import _ from 'lodash/lodash';%0A
import l
@@ -370,24 +370,450 @@
iss: false,%0A
+ init() %7B%0A this._super(...arguments);%0A // Debouncing autosave prevents a request per keystroke, only sending it%0A // when the user is done typing (trailing=true), debounce ... |
a68b1413939c765d98a215067be895e7b98d9c86 | Debug artist insert 3 | assets/js/analyze.js | assets/js/analyze.js | /**
* Main module for analyze view
* @param {type} $ jQuery module
* @param {type} facebook Facebook Graph API module
* @param {type} LastFMProxy LastFM API Wrapper module
* @param {type} Aggregate Custom aggregation methods module
* @returns {void}
*/
define (['jquery', 'facebook', 'LastFMProxy', 'StatsAnalyzer... | JavaScript | 0 | @@ -6156,25 +6156,16 @@
%7D;%0A
- %0A
@@ -6185,647 +6185,8 @@
t);%0A
- /*%0A FB.login(function(loginResponse) %7B%0A if (!loginResponse %7C%7C loginResponse.error) %7B%0A // No permission%0A console.log('Login error');%0A %7D else... |
f36ec2b0f33ff5864166459ca14940d88c5b9cba | Remove unnecessary call to angular.extend. | intersect.js | intersect.js | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['exports', 'angular'], factory);
} else if (typeof exports === 'object') {
factory(exports, require('angular'));
} else {
factory((root.commonJsStrict = {}), root.angular);
}
}(this, function (... | JavaScript | 0 | @@ -1211,37 +1211,8 @@
ular
-);%0A angular.extend(intersect
, %7B%0A
|
51aed4ae977a18afdb48331a01511ff13966d6d6 | Update countdown for bag day | assets/js/checkin.js | assets/js/checkin.js | $(document).ready(function(){
$('#studentid').focus();
var timeout;
var l;
var working = false;
handleresponse = function (msg) {
console.log(msg);
l.stop();
working = false;
$('#studentid').val('').focus();
var level='danger';
var title='Uh-Oh...';
... | JavaScript | 0 | @@ -2106,18 +2106,21 @@
19,
-0, 5, 9, 0
+1, 19, 22, 59
, 0,
|
7e3982a9631220c4cb0f656aa974f1a376795350 | Disable gallery effect on small screens | assets/js/gallery.js | assets/js/gallery.js | (function() {
var RESET_INTERVAL = 3000;
var IMG_DIR = '/assets/img/team/';
var IMG_FORMAT = '.jpg';
var portrait = 'portrait';
var background = 'background';
var thumbnail = 'thumbnail';
var thumbBg = 'thumbnail-background';
var allToggleButtons = document.querySelectorAll('[data-fx="toggle-button"] ... | JavaScript | 0 | @@ -231,24 +231,68 @@
ckground';%0A%0A
+ var screenResolution = window.innerWidth;%0A
var allTog
@@ -2918,24 +2918,62 @@
unction() %7B%0A
+ if (screenResolution %3E= 1024) %7B%0A
inactivi
@@ -2990,16 +2990,18 @@
+
init();%0A
%7D%0A
@@ -2996,16 +2996,22 @@
init();%0A
+ %7D%0A
%7D%0A%7D... |
33573af3b0dfdd5713e99fa6605880d2d414ed22 | fix camelcase property names | src/lib/ui/main-window.js | src/lib/ui/main-window.js | 'use strict'
// var uiHelpers = require('./helpers')
var uiComponents = require('./components')
var eventHandlers = require('../event-handlers')
module.exports = {
openMainWinFunction: openMainWinFunction
}
/**
* Make the openMainWin function as a closure
* @method
* @param {Editor} editor The tinymce active ed... | JavaScript | 0.000032 | @@ -1124,17 +1124,17 @@
line
-s
+S
pacing:
@@ -1312,17 +1312,86 @@
border
-w
+Style: editor.dom.getStyle(paragraph, 'border-style'),%0A borderW
idth: ed
@@ -1450,17 +1450,17 @@
border
-c
+C
olor: ed
|
dbb2f802d1ef7d401d39e5df30cdfab922a34702 | Change game duration | source/src/Index.js | source/src/Index.js | import $ from 'jquery';
let TIMER_COUNT = 3;
let GAME_TIME = 10;
let score = 0;
let chillLifetime = 1200;
$(document).ready(function () { // change to deviceready after cordova integration
$('#playNow').click(startGame);
$('#home').click(showHome);
});
function startGame() {
showCounter(TIMER_COUNT).done(initGameSc... | JavaScript | 0.000001 | @@ -54,17 +54,17 @@
_TIME =
-1
+6
0;%0Alet s
@@ -2145,17 +2145,17 @@
mInt(10,
-5
+7
0);%0A%09%09th
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.